🌍 Public
Viewing a saved revision (read-only)
f6c591d5ae8b4cd39832267b74300db7
Fork of 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