Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

piechart question1LB

Public visualization

Viewing a saved revision (read-only)

733508f060e54b0b9c1ba426804a915f

piechart question1LB

0 stars0🌍 Public
Llokeshchowdary465@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024

This pie chart visualizes vehicle registration counts by type, with each slice labeled with its abbreviated value (e.g., "15K) and accompanied by a color-coded legend showing both the category name and exact count. The chart loads CSV data from a GitHub gist using `d3.csv`, then constructs the pie with `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for color mapping, while text labels are positioned via `arc.centroid`. Rendered as SVG, the visualization uses D3 v5 selection methods to append paths and legend elements.

AI-generated description