Closed oliverroick closed 1 month ago
@oliverroick I did a quick function review and wasn't able to see more then one food group listed for areas that should have them. I tried Québec but it doesn't show any bars:
Do you know of any other areas that have more than one food group and are working as intented?
@vgeorge Here's one with two groups: http://localhost:3000/area/CRI.1_1 I did notice that the data overall is quite sparse. I'm basing the data on the exports from the area, and many areas don't seem to export anything at all or they only export two food groups max.
@oliverroick I looked into the area you referred to and it displayed the data correctly; this looks good. We might need an empty state for when there is no flow data available, for which I ticketed in separate in https://github.com/earth-genome/foodtwin-global-app/issues/85.
With the merge to #78 there are conflicting changes with this. I tried to solve it, but it seemed that I was introducing regressions in your work. Would you be able to merge develop into this?
@vgeorge I've sorted out the merge conflict here.
Adds the food-produced bar chart to the area page
findParent
find the top-most ancestor for a given food groupListBars
, usingformatKeyIndicator