🌍 Public
Viewing a saved revision (read-only)
5db98967f8524401802f459da1b36f87
Assignment-2(Question-1)
This example shows the proportion of total car sales by model type as an SVG pie chart, with a legend on the right. It loads car sales data from a CSV file and aggregates units sold by model using `d3.rollup` and `d3.sum`. The chart uses `d3.pie` and `d3.arc` to generate the slices, with labels placed via `arc.centroid` and colors from `d3.scaleOrdinal` with `d3.schemeCategory10`.
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.