Pie_Chart_Question1
✓ Published5🌍 Public
A pie chart displays the basic cost of Netflix subscriptions across ten countries, sorted from highest to lowest and formatted in US dollars. The chart renders as an SVG using D3 v5 within a React framework, leveraging D3's `pie`, `arc`, and `scaleOrdinal` functions to generate segments and apply a categorical color scheme. A legend with colored rectangles, country names, and cost values accompanies the plot, and hovering over a segment logs its cost to the console. Data is loaded asynchronously from a GitHub-hosted CSV file using D3's `csv` method.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed