Skip to content
Vega-Lite templates

Biology — Balanced Diet by Food Group

Proportions of a healthy plate.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Balanced diet by food group (%)",
  "data": {"values": [
    {"group":"Carbohydrates","percent":38},
    {"group":"Fruit and veg","percent":33},
    {"group":"Protein","percent":12},
    {"group":"Dairy","percent":8},
    {"group":"Fats and sugars","percent":9}
  ]},
  "mark": "arc",
  "encoding": {
    "theta": {"field":"percent","type":"quantitative"},
    "color": {"field":"group","type":"nominal","title":"Food group"}
  }
}