Fork of Pie Chart
✓ Published1🌍 Public
This example visualizes the basic cost of Netflix subscriptions across ten countries, showing each cost as a slice of a pie chart with a corresponding legend that lists country names and their dollar values. The chart is built using D3.js v5 within a React framework, leveraging the `pie`, `arc`, and `scaleOrdinal` APIs to generate and color the SVG segments. Data is loaded from a CSV file hosted on GitHub Gist, sorted in descending order, and the chart renders interactively, logging the cost of a selected slice to the console on mouseover.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed