Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 1

Public visualization

Viewing a saved revision (read-only)

1c3bc6ba5b674d58bb345bc1a44da580

Question 1

0 stars0🌍 Public
Ggoudrohit2000@gmail.com
Last edited Nov 1, 2024
Created on Nov 1, 2024
Forked from Question 1

This example visualizes vehicle registration counts by type as a pie chart. The code loads CSV data from a GitHub repository using `d3.csv` and maps the `Count` values to arc segments generated with `d3.arc` and `d3.pie`. Each slice is labeled with its value (formatted using `d3.format`), and a legend lists the vehicle types alongside their counts. The chart is rendered as an SVG with `d3.select`, with ordinal color scaling via `d3.scaleOrdinal` for the four categories.

AI-generated description