You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard page skeleton with a first chart example has already been created in Create Dashboard Page #163
The endpoint ${HOST}/api/maps/dashboard/${LAYER_ID} returns agregated indicators by year.
For now, only the indicators of the layer 'inventaire" (corresponding to forest indicators) are supported.
⚠️ Not all agregated indicators are computed correctly, because it's still a work in progress. Plan a fallback with fake data for those indicators see an example of data formatting here
Ideally, try to reuse as much code as possible from features/indicators module or to adapt it so it can be used for popup data and dashboard data (forest indicators correspond to biodiversity and soil folders)
A user must be logged in to access the dashboard page. see the App router
- staging admin credentials are available at the end of this doc
The client that retrieves data from the backend has already been created. see api client
A first chart is already displayed on the dashboard page based on the retrieved data. see Dashboard Page
All the expected charts components excepted line charts components have already been created for the popup feature see features/charts, biodiviersity and soil folders. They should be reused for the dashboard charts. (similar data shape)
Line chart components must be added in the features/charts module.
Objective
The goal of this ticket is to display the "inventaire" layer charts with agregated indicators.
The expected design is available here : https://www.figma.com/make/QtxYpR1v4gT53ZmUXIrLTn/System-Dashboard--All4T-?p=f&t=0Fi37DSB9pEM5Lk4-0
Context
${HOST}/api/maps/dashboard/${LAYER_ID}returns agregated indicators by year.biodiversityandsoilfolders)- staging admin credentials are available at the end of this doc
DASHBOARDand sub sectionBiodiversitéfeatures/chartsmodule.