Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
Bboinapallyhimaja657@gmail.com
Last edited Mar 27, 2025
Created on Mar 27, 2025
Forked from D3 Starter

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 description
MIT Licensed

Similar vizzes