Skip to main content
100%

Fork of Pie_Chart_Question1

✓ Published0🌍 Public
AAnilKumarReddyVanteru@my.unt.edu
Last edited Apr 28, 2024
Created on Apr 28, 2024

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 cost in dollars. The chart is rendered as an SVG using React and D3 v5, leveraging `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with a `schemeCategory10` color palette. Data is loaded from a CSV file hosted on GitHub, sorted descending, and sliced to the top ten entries. Mouseover events log the corresponding cost to the console.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes