A Nuxt.js tool that reads data from a SQL database and renders it on different views (map, gallery, alerts dashboard)
3
stars
0
forks
source link
Add alert statistics and basic Chart.js line chart to `AlertsIntroPanel` #23
Closed
rudokemper closed 6 months ago
Contributing to https://github.com/ConservationMetrics/guardianconnector-views/issues/16. This PR:
prepareStatistics()
function, used to create astatistics
array for the/alerts
API endpoint.AlertsIntroPanel
and sets it to open on first load. The component shows a number of data fields populated with thestatistics
data.chart.js
to the application modules, and use it to visualize the # of hectares affected in the last 12 months in the form of a line chart.