🌍 Public
Viewing a saved revision (read-only)
44e1638fa19e44b9b3d6a8a8e55d5bf8
Question1_A1
This pie chart visualizes the distribution of car horsepower across different makes, using D3 v7 to render SVG arcs and labels. The chart encodes horsepower values as arc sizes and colors each segment by car make, with a legend positioned to the right. Labels are placed along the arcs using `d3.arc`’s centroid method, and the data comes from an inline array of `{make, horsepower}` objects. A hover effect on the paths provides subtle interactive feedback.
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.