Skip to main content
100%

Activity 7.1D3.JS

✓ Published0🌍 Public
AAbhinay Peeta
Last edited Apr 10, 2025
Created on Apr 10, 2025

This D3.js v7 visualization presents a pie chart of vehicle types, using SVG rendering to display proportional slices of the data. It loads a CSV file from a GitHub gist and aggregates the records with `d3.rollup`, counting occurrences per vehicle type. The chart uses `d3.pie` and `d3.arc` to generate the paths, with `d3.scaleOrdinal` and `schemeTableau10` providing categorical colors. A legend is drawn manually, and tooltips are added via SVG `title` elements. The chart also includes axis labels as static text.

AI-generated description
MIT Licensed

Similar vizzes