🌍 Public
Viewing a saved revision (read-only)
81e6b2b5e06642578d39f41298e64dd2
Amulya kannam
This visualization shows the protein content in grams for various cereals as a pie chart, with each slice colored and labeled via a legend that displays both the cereal name and its protein value. The chart is rendered in SVG using D3.js v5, where the `pie()` and `arc()` functions generate the segments, and `scaleOrdinal` assigns colors. Data is loaded asynchronously from a CSV file hosted on GitHub using `d3.csv` (via `getData.js`), then formatted with `d3.format` for the legend labels. The page title and heading are styled with red text via CSS.
AI-generated description