Fork of Pie Chart_Rinoj Gautam
✓ Published1🌍 Public
This example visualizes the smoking rates of the top 10 US states using a pie chart rendered with SVG. The chart uses D3 v5 to load CSV data from a GitHub gist, sorted in descending order, and encodes each state’s rate as a pie segment. Legends display each state name and its percentage value. The code leverages `d3.csv`, `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` for data loading, layout, and color mapping, with hover events logging values to the console.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed