Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Pie chart

Public visualization

Viewing a saved revision (read-only)

fa454febf2d648378bd5549706b84759

Fork of Fork of Pie chart

0 stars1🌍 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.