Skip to main content
100%

Fork of Pie Chart

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

This example displays a pie chart of deaths in Canada by state, with each slice colored and labeled, alongside a legend showing state names and death counts. The visualization is built with D3 v5, using `d3.pie()` and `d3.arc()` to generate the chart segments and label positions. Data is loaded asynchronously via `d3.csv()` from a GitHub Gist, with colors assigned through `d3.scaleOrdinal()`. The SVG rendering includes text labels on each slice and a legend with colored rectangles and formatted values, all styled with embedded CSS.

AI-generated description
MIT Licensed

Similar vizzes