Fork of D3 Starter
✓ Published0🌍 Public
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 descriptionMIT Licensed