🌍 Public
Viewing a saved revision (read-only)
15f00affbf3f4482bb749e2ef99b3f2b
Fork of D3 Starter
This visualization displays the number of registered vehicles per country as a horizontal bar chart, using a quantitative x-axis and categorical y-axis. The data comes from a CSV file listing ten nations with varying reference years. Built with React and D3 v5, the component loads the CSV using `d3.csv`, then maps values to scales using `scaleLinear` and `scaleBand`. Bars are rendered as SVG `<rect>` elements, while axes are constructed manually via `xLinear.ticks()` and D3’s `format` function, avoiding the built-in axis components.
AI-generated description