-
-
Notifications
You must be signed in to change notification settings - Fork 92
Description
###Problem
Nutrition data is currently shown only in text/table form. There is no quick visual way to understand how heavy a product is in key nutrients.
Also, the Open Food Facts API does not provide category average macros, and calculating them dynamically would be slow and inefficient.
###Proposed solution
Add a Radar Chart component using vega-lite that compares key nutrients (per 100g) against Recommended Daily Maximums:
Fat – 70g
Saturated Fat – 20g
Sugars – 90g
Salt – 6g
The chart will show what percentage of the daily limit 100g of the product consumes.
###Additional context
Using daily reference values ensures:
Consistent comparison baseline
High performance
No additional API overhead
Clear, user-centered insight
###Design & mockups
Create RadarChart.svelte
Show 4 axes (Fat, Saturated Fat, Sugars, Salt)
Display percentage values with tooltips
Add note: “Based on 100g and 2000 kcal daily intake.”
Metadata
Metadata
Assignees
Labels
Type
Projects
Status