Skip to main content
100%

Fork of Fork of Pie chart

✓ Published1🌍 Public
VVineela Reddy
Last edited Apr 25, 2024
Created on Apr 24, 2024
Forked from Fork of Pie chart

This example shows the distribution of shipping amounts across different cities during the Covid era using a pie chart rendered in SVG. The chart fetches data from a CSV file hosted on GitHub and displays each city’s total as a labeled slice, with a color-coded legend on the right. The code uses d3.csv to load the dataset, d3.pie to compute the angles, and d3.arc along with scaleOrdinal for the colored segments and centroid-based text placement.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes