🌍 Public
Viewing a saved revision (read-only)
35d32287cc6846228737f1c8da10c957
Pie Chart for nutrition analysis
This pie chart visualizes the nutritional breakdown of a Kinder Joy product, showing the percentage distribution of components like fat, sugar, and protein. The chart uses D3.js v5 to generate SVG arcs, with each segment labeled with its percentage value and a legend identifying the corresponding nutrient. Data is loaded from a CSV file hosted in a GitHub gist. The visualization employs `d3.pie` for angle generation, `d3.arc` for path construction, and `d3.scaleOrdinal` to assign distinct colors to each category.
AI-generated descriptionThis Pie Chart has been created using html,css,d3.js.