Skip to main content
100%

Fork of Question 1

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

This visualization displays vehicle registration counts by type using a pie chart and accompanying legend, with values formatted in thousands (e.g., "5K"). The code loads data from a CSV file, uses `d3.pie` to compute arc segments, and renders the chart as SVG paths via `d3.arc`. Colors are assigned using `d3.scaleOrdinal` with a custom palette. Text labels and legend entries are added with `d3.select` and `.append()`, while axis labels are manually positioned, though no actual axes are drawn. The title "Vehicle Registrations" appears in red above the chart.

AI-generated description
MIT Licensed

Similar vizzes