Skip to main content
100%

Question 1

✓ Published0🌍 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
MIT Licensed

Similar vizzes