Skip to main content
100%

Fork of Fork of Making a Bar Chart

✓ Published0🌍 Public
QQuinn Sebso
Last edited Apr 30, 2024
Created on Apr 30, 2024

This bar chart displays GDP for a selection of countries, using horizontal bars scaled by a linear axis. The code employs D3 v5's `scaleLinear` and `scaleBand` for positioning, with `axisLeft` and `axisBottom` for ticks and labels. It generates an SVG visualization, reading data from `data.csv` and formatting tick numbers with `format`. The chart customizes axes by removing domain lines and adding a custom title and axis label.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes