Skip to main content
100%

Fork of Fork of Pie Chart

✓ Published0🌍 Public
Ttejaswikalluri05
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Fork of Pie Chart

This visualization displays city population data as a pie chart, with each slice colored distinctly and accompanied by a legend showing city names and population counts. Built with D3 v5 and rendered as SVG, it uses `d3.pie` and `d3.arc` to compute and draw the pie segments, while `d3.scaleOrdinal` assigns colors. Data is loaded from a CSV file via a gist URL using `d3.csv`, and the chart positions the pie with a fixed translation and labels with custom text elements.

AI-generated description
MIT Licensed

Similar vizzes