Skip to content

Add Radar Chart Visualization for Core Nutrients vs Daily Reference Intakes #998

@Pankajyadav919

Description

@Pankajyadav919

###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

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions