Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 1

Public visualization

Viewing a saved revision (read-only)

92ba4f9b1352416dae4b7d65468bc6df

Question 1

0 stars2🌍 Public
Ggoudrohit2000@gmail.com
Last edited Nov 1, 2024
Created on Nov 1, 2024

This visualization displays vehicle registration counts by type as a donut pie chart with an interactive legend. The chart shows four categories with proportional slices and displays the value in thousands inside each segment, while the legend on the right lists each vehicle type with its corresponding color and count. Built with D3 v5, the code uses the `pie` function to compute arc segments, `arc` for path generation, and `scaleOrdinal` for color mapping, fetching data from a remote CSV file. The SVG output is styled with custom CSS classes for the legend text and labels.

AI-generated description