T9Q1
✓ Published0🌍 Public
This example renders a donut chart of total horsepower aggregated by car make from a CSV dataset hosted on GitHub. It uses D3 v7 modules including `d3.rollup`, `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with `d3.schemeCategory10` to create colored arcs with labeled slices. A legend is appended to the SVG, and the chart is generated inside a group transformed to the center of the canvas.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed