Question1-1 Anil
✓ Published0🌍 Public
This example shows a pie chart of car horsepower by make, with a color-coded legend for each manufacturer. Built with D3 v6, it loads CSV data from GitHub, parses numeric values, and uses `d3.pie` and `d3.arc` to generate the SVG slices. A `d3.scaleOrdinal` with `schemeCategory10` maps makes to colors, while `d3.csv` handles asynchronous data fetching. The chart includes a custom legend built from `color.domain()`, rendered as SVG rectangles and text.
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