Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Fork of Pie Chart

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed