Customizing Axes
✓ Published0🌍 Public
This example shows a horizontal bar chart of national populations, with country names on the y-axis and population counts on the x-axis. The chart uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct a clean, margin-based SVG layout. Population values from the CSV are parsed and multiplied by 1000, and bars are rendered as `rect` elements with a steelblue fill.
AI-generated descriptionMIT Licensed