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