Fork of Pie Chart
✓ Published0🌍 Public
This example shows the basic monthly cost of Netflix across countries using a pie chart fed by a CSV file from a GitHub gist. D3’s `pie()` generates the arc data, while `arc()` renders the SVG paths, and `scaleOrdinal` with `schemeCategory10` assigns colors. A legend displays each country’s name and cost, formatted with a custom number formatter. The chart is built in a React environment, and the data is sorted and sliced to show the top 10 values.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed