🌍 Public
Viewing a saved revision (read-only)
76ac877b4af04a23b03b2b4ec5106469
Fork of Reusable Scatter plot Activity 8
This pie chart visualizes the distribution of smokers versus non-smokers in a tips dataset. It uses d3.pie and d3.arc to generate SVG path slices, with a d3.scaleOrdinal color scale distinguishing the two categories. The chart includes labeled slices showing counts, plus a legend built from SVG rect and text elements. Data is loaded asynchronously via d3.csv from a GitHub gist, and nested grouping with d3.nest calculates category frequencies.
AI-generated description