Fork of Pie Chart
✓ Published0🌍 Public
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.
MIT Licensed