Now pulls data from the data API, instead of Carto
Now displays percentages by sector in the donut chart instead of the percentage by male/female
Donut chart colors have been tweaked It used to use the same colors as the Economic Impact widget, now the color definitions are separate due to the changes
Minor tweaks to the sentence wording
New query for fetching the data, following the same standards as other calls in the same forest-data service
Adapted the years that can be selected to match the acceptance criteria:
We removed 1990 and '2005', added 2015
2015 is now the default
Download URL is working, with the csv provided by the dataset endpoint
Notes:
The codebase for this widget had a provision for when we have sufficient data to display the widget, but not data to display the female percentage. The new revision still accounts for that in the sentence.
If there is no data for a particular year/location, "No data" will be shown, matching the all other widgets.
Overview
In this PR:
instead of the percentage by male/female
It used to use the same colors as the Economic Impact widget, now the color definitions are separate due to the changes
forest-data
service1990
and '2005', added2015
2015
is now the defaultNotes:
Screenshots
Before:
After:
Tracking
FLAG-927