Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Mmanishcheruku
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from Pie Chart

This example shows the basic monthly cost of Netflix across countries using a pie chart fed by a CSV file from a GitHub gist. D3’s `pie()` generates the arc data, while `arc()` renders the SVG paths, and `scaleOrdinal` with `schemeCategory10` assigns colors. A legend displays each country’s name and cost, formatted with a custom number formatter. The chart is built in a React environment, and the data is sorted and sliced to show the top 10 values.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes