🌍 Public
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.