Fork of Pie Chart
✓ Published0🌍 Public
This example visualizes the basic monthly cost of Netflix subscriptions across ten countries using a pie chart with a legend. The chart is rendered with SVG elements and built in React, using D3 v5 functions such as `pie()`, `arc()`, `scaleOrdinal()`, and `schemeCategory10` for coloring. Data is loaded via `d3.csv` from a GitHub gist, sorted descending, and displayed with formatted dollar values in the legend. Each slice responds to mouseover by logging the cost to the console.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed