🌍 Public
Viewing a saved revision (read-only)
0382cc5630df48adbc8e7c3ea6aa6986
Fork of Pie Chart
This example displays the basic cost of Netflix for the top ten countries by cost-of-living index, using a pie chart with a legend that lists each country and its corresponding cost in dollars. The chart is rendered with SVG via React, using D3 v5 methods such as `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` to generate the segments and colors. Data is loaded from a CSV file hosted on GitHub Gist, then sorted and filtered before rendering. Hovering over a segment logs the cost value to the console.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.