🌍 Public
Viewing a saved revision (read-only)
440d9c67b16f4e1793257486a6dc7da6
Fork of piechart ic7
This visualization shows the top 10 car-producing countries in 2019 as a pie chart, with each slice representing a country’s total production value and a legend listing country names alongside their values in thousands. The code loads CSV data via a gist URL using `d3.csv`, then processes it with `d3.pie` and renders SVG paths using `d3.arc`. Colors are assigned via `d3.scaleOrdinal`, and the chart is positioned with SVG transforms. The legend is built manually with circles and text elements, while values are formatted using `d3.format`. The page is styled with custom CSS.
AI-generated description