Skip to main content
100%

bars!

✓ Published2🌍 Public
AAveryBurke
Last edited Jan 14, 2019
Created on Jan 12, 2019

A horizontal bar chart displays population estimates for ten countries, with bars sorted alphabetically by country name and lengths scaled to population values. The visualization loads data from a CSV file and multiplies the population column by 1,000 during preprocessing. Using D3 v5, the code applies `scaleBand` for the categorical y-axis, `scaleLinear` for the population x-axis, and renders bars as SVG rectangles with `axisLeft` and `axisBottom` for tick labels. The chart includes margins and padding, with a fixed width of 960 pixels and height of 500 pixels.

AI-generated description
MIT Licensed

Similar vizzes