Fork of Pie Chart
✓ Published0🌍 Public
This example visualizes the top 10 countries by gas price per gallon (USD) for June 2023, using a pie chart with a color-coded legend for each country and its price. Data is loaded from a CSV gist and rendered with React, using D3 v5’s `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` to generate SVG paths. Hovering a slice logs its price to the console. The chart displays a title and a custom legend with formatted dollar values.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed