Skip to main content
100%

Amulya kannam

✓ Published0🌍 Public
KkannamAmulyachowdary
Last edited Jul 2, 2022
Created on Jun 29, 2022
Forked from Fork of Pie Chart

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
MIT Licensed

Similar vizzes