🌍 Public
Viewing a saved revision (read-only)
bb8f2aba1c894b85997737252805ef69
Fork of Fork of Fork of Pie Chart
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.