Skip to main content
100%

Fork of Fork of Fork of Pie Chart

✓ Published0🌍 Public
Mmanishcheruku
Last edited Mar 25, 2023
Created on Mar 25, 2023

This example shows the basic cost of Netflix subscriptions for the top 10 countries, sorted descending, as a pie chart with a custom legend listing country names and dollar amounts. The chart is rendered as an SVG using D3 v5’s `pie`, `arc`, and `scaleOrdinal` functions, with `schemeCategory10` for color encoding. Data is loaded from a CSV via `d3.csv`, and mouseover events log each segment’s value to the console, while number formatting appends “$” to each cost.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes