Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Yyamunaunt
Last edited Mar 29, 2023
Created on Mar 29, 2023
Forked from Pie Chart

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes