Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Kkollirohit2000
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from Pie Chart

This example visualizes the basic cost of Netflix subscriptions across ten countries using a pie chart, sorted in descending order and rendered as SVG. The chart displays each country’s cost as a colored slice, with a legend listing country names and their corresponding dollar amounts. Built with React and D3 v5, it uses `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.csv` to load data from a GitHub gist. Mouseover events log slice values to the console, while legends are manually appended to the SVG.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes