Skip to main content
100%

Fork of ICE 7 Sharanya 2Q

✓ Published0🌍 Public
Cchengalvasharanya@gmail.com
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from ICE 7 Sharanya 2Q

This pie chart displays the distribution of electric vehicles by vehicle segment, with each slice labeled by segment name and count and accompanied by a color-coded legend. The visualization loads a CSV dataset from a GitHub Gist using `d3.csv` with `d3.autoType`, aggregates counts via `d3.rollups`, and renders the chart as SVG using D3 v7’s `d3.pie` and `d3.arc` generators. A categorical color scale, `d3.scaleOrdinal` with `d3.schemeSet2`, assigns slice colors, while labels are positioned using `arc.centroid`.

AI-generated description
MIT Licensed

Similar vizzes