tutorial
✓ Published0🌍 Public
This example shows the distribution of highway fuel efficiency across car brands as a pie chart. Each slice is labeled with the brand name and its corresponding percentage of highway MPG. The visualization loads CSV data from a GitHub repository and uses D3’s `pie` and `arc` generators to create the slices, with `scaleOrdinal` assigning colors per brand. Labels are positioned using `arcGenerator.centroid`, and the SVG is centered within the viewport.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed