🌍 Public
Viewing a saved revision (read-only)
17af3c1a9a3544c7be8642bc0d618350
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