Skip to main content
100%

axes and stuff

✓ Published2🌍 Public
AAndrew Fletcher
Last edited Jan 12, 2020
Created on Jan 11, 2020
Forked from itsa bar chart!

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 description
MIT Licensed

Similar vizzes