Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Harshita Question 1

Public visualization

Viewing a saved revision (read-only)

1d3659bbf3f1492aa998f57991424def

Harshita Question 1

0 stars1🌍 Public
HHarshita Vairagade
Last edited Apr 29, 2024
Created on Apr 28, 2024

This D3.js pie chart visualizes the top 10 car-producing countries for 2019, using a categorical color scale to distinguish each nation. The code loads CSV data from a Gist, aggregates the values, and renders the chart with SVG paths using `d3.pie` and `d3.arc`. A legend, built with `d3.scaleOrdinal` and custom text elements, displays country names and their production totals formatted in thousands.

AI-generated description