🌍 Public
Viewing a saved revision (read-only)
141e85764d9d4544b2f9634513c621f7
Pie Chart
This example displays a pie chart visualizing Hulu users across the top 10 counties, with each slice representing the basic cost of subscriptions. The chart uses d3.pie and d3.arc to generate the segments, with d3.scaleOrdinal and d3.schemeCategory10 assigning colors. Legends are rendered as SVG rectangles and text, listing country names alongside their user counts in thousands. Data is loaded via d3.csv from a remote gist, then sorted and filtered to the top 10 entries before rendering.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.