Skip to main content
100%

ICE7_PieChart_HarshaPalacharla

✓ Published0🌍 Public
Nnagasuryaharsha999@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from ICE7

This pie chart visualizes the distribution of smoking habits from a CSV health dataset. It shows the relative counts of each smoking habit category as colored slices, with labels and a legend displaying the exact counts. The visualization is built with D3 v7, using `d3.pie()` and `d3.arc()` to generate the slices, `d3.rollup()` to aggregate the data, and `d3.scaleOrdinal()` with `d3.schemeCategory10` for coloring. The SVG rendering positions labels via `labelArc.centroid()` and places the legend to the right of the chart.

AI-generated description
MIT Licensed

Similar vizzes