Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE7

Public visualization

Fork of ICE7

1 star2🌍 Public
PPujitha14challagulla
Last edited Jun 30, 2022
Created on Jun 30, 2022
Forked from ICE7

This pie chart displays the top 10 car-producing countries in 2019, with each slice sized by total production value and labeled in a legend showing country names and quantities in thousands. The visualization uses D3 v5’s `pie()` and `arc()` generators to compute and draw the SVG paths, with `scaleOrdinal()` assigning a distinct color to each segment. Data is loaded asynchronously from a CSV hosted on GitHub Gist via `d3.csv`, and the legend is manually constructed with appended circles and text elements, with values formatted using `format()`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed