Skip to main content
100%

Activity 7_Answer 1_D3.JS

✓ Published2🌍 Public
NNIIPUNNREDDY00@GMAIL.COM
Last edited Apr 10, 2025
Created on Apr 9, 2025
Forked from Hello VizHub

This pie chart shows the distribution of vehicle types in a dataset, with each slice colored and paired with a legend. The visualization is built using D3.js v7 and rendered as SVG, with the pie geometry computed by `d3.pie()` and drawn using `d3.arc()`. Data is loaded from a remote CSV file, aggregated with `d3.rollup()`, and colored using `d3.scaleOrdinal(d3.schemeTableau10)`. The chart includes axis labels and hover tooltips, though the code erroneously mislabels the categorical pie slices as X and Y axes.

AI-generated description
MIT Licensed

Similar vizzes