Skip to main content
100%

make bar

✓ Published1🌍 Public
Fforeverworld1879
Last edited Mar 11, 2020
Created on Mar 11, 2020
Forked from make bar

A horizontal bar chart displays the top ten most populous countries, with China leading and Mexico trailing. The chart uses D3 v5’s `csv` loader to parse population data, which is multiplied by 1,000, and `scaleLinear` and `scaleBand` to map values. SVG rectangles are positioned via the band scale, while `axisLeft` and `axisBottom` add categorical and numeric axes, with tick labels formatted using `format`. A custom title and axis label annotate the visualization, which is styled with steel blue bars and a monospace font.

AI-generated description
MIT Licensed

Similar vizzes