Fork of Pie Chart
✓ Published0🌍 Public
This example visualizes the basic cost of Netflix subscriptions across ten countries, using a pie chart with a legend displaying each country’s name and its cost in U.S. dollars. The data is loaded from a CSV file via `d3.csv`, then processed with `d3.pie` and rendered using `d3.arc` paths. Colors are assigned with `d3.scaleOrdinal` and `d3.schemeCategory10`, while the SVG output is built in a React framework with D3 v5, and hover events log the selected value to the console.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed