Skip to main content
100%

Customizing Axes

✓ Published3🌍 Public
JJacob van Lingen
Last edited May 14, 2020
Created on May 14, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The axes are customized through D3’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs, with tick formatting converting values to billions. The bottom axis includes a label and the chart is rendered as SVG, with bars drawn as `rect` elements. The code removes default axis lines and ticks, and the visualization omits the left axis line for a cleaner design.

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