Skip to main content
100%

Vertical bar chart

✓ Published5🌍 Public
TTheRedUnicorn
Last edited Jul 21, 2019
Created on Jul 21, 2019
Forked from Customizing Axes

A vertical bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The bars are rendered as SVG rectangles, with a linear y-scale and band x-scale. The code customizes both axes, removing default domain lines and rotating x-axis labels, while using d3.axisLeft and d3.axisBottom with tick formatting that abbreviates large numbers.

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.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes