Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
AAlonso Figueroa
Last edited Apr 20, 2023
Created on Apr 20, 2023
Forked from Pie Chart

This example visualizes the basic monthly cost of Netflix subscriptions across ten countries using a pie chart with a legend. The chart is rendered with SVG elements and built in React, using D3 v5 functions such as `pie()`, `arc()`, `scaleOrdinal()`, and `schemeCategory10` for coloring. Data is loaded via `d3.csv` from a GitHub gist, sorted descending, and displayed with formatted dollar values in the legend. Each slice responds to mouseover by logging the 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