Biology — Chart: Energy in Nutrients
Energy density of the macronutrients.
Rendering…
Make it your own.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Energy per gram of macronutrient",
"data": {"values": [
{"nutrient": "Carbohydrate", "kJ": 17},
{"nutrient": "Protein", "kJ": 17},
{"nutrient": "Fat", "kJ": 37},
{"nutrient": "Alcohol", "kJ": 29}
]},
"mark": "bar",
"encoding": {
"x": {"field": "nutrient", "type": "nominal", "title": "Nutrient"},
"y": {"field": "kJ", "type": "quantitative", "title": "energy (kJ/g)"},
"color": {"field": "nutrient", "type": "nominal", "legend": null}
}
}