Let´s make a bar chart!
✓ Published2🌍 Public
This example shows a horizontal bar chart of population data for the ten most populous countries, with values scaled in thousands. The chart uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and SVG rectangles for bars. Data is loaded from a CSV file and rendered with the `axisLeft` and `axisBottom` components, while margins and inner dimensions are computed manually for layout.
AI-generated descriptionMIT Licensed