Fork of D3 Starter
✓ Published0🌍 Public
This example visualizes tip distribution in a restaurant dataset by smoker status, showing a pie chart with colored slices labeled inside each segment. The chart loads tab-separated data via `d3.dsv` from a GitHub gist, then uses `d3.rollups` to aggregate total tips per category. Slice geometry is computed with `d3.pie()` and `d3.arc()`, while `d3.scaleOrdinal` with `d3.schemeCategory10` assigns colors. SVG text elements provide titles, axis labels, and a legend, all rendered within a 600×600 viewport.
AI-generated descriptionMIT Licensed