ICE7_PieChart_HarshaPalacharla
✓ Published0🌍 Public
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 descriptionMIT Licensed