🌍 Public
Viewing a saved revision (read-only)
7fe616a70ac142af9a50a456e52b76ba
Assignment2_Question1
This visualization is a pie chart that displays the distribution of car types, focusing on the top three most frequent categories from a CSV dataset. The chart shows each car type’s percentage share, with labeled slices and a legend. The data is fetched from a GitHub repository using `d3.csv` and processed to calculate counts and percentages. The pie layout is generated with `d3.pie` and `d3.arc`, while `d3.scaleOrdinal` with `d3.schemeCategory10` assigns colors, and SVG elements render the chart and legend.
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.