Fork of Pie Chart
✓ Published0🌍 Public
This example visualizes the basic cost of Netflix subscriptions across ten countries using a pie chart, sorted from highest to lowest cost. The chart displays each country’s cost as a filled arc segment, with a legend listing country names and their corresponding dollar values. The code uses D3 v5 APIs including `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.csv` to load data from a gist. Interactive mouseover events log the cost to the console, and the rendering is done via SVG within a React-free HTML page.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed