Fork of Fork of Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the protein content in grams for different cereals, using a dataset loaded from a GitHub-hosted CSV file via d3.csv. The chart encodes categorical values with d3.pie and d3.arc paths, while a d3.scaleOrdinal color scheme distinguishes each cereal across nine distinct hues. A legend rendered alongside the chart pairs each cereal’s name with its numerical protein value, formatted using d3.format. The visualization is built entirely with SVG elements in D3 v5, with the chart centered in an HTML page and styled via an external stylesheet.
AI-generated descriptionMIT Licensed