axes and stuff
✓ Published2🌍 Public
This example displays a horizontal bar chart of population by country. The chart uses a linear scale for the population axis and a band scale for country names, with gridlines extending across the plot area. Built with D3 v5, it uses `svg.append`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render SVG bars. The code loads population data from a CSV, multiplies values by 1000, and formats tick labels using D3's `format('.3s')`.
AI-generated descriptionMIT Licensed