Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
CChaitanya Ratan Sree
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Pie Chart

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes