Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Nnshedd
Last edited Aug 31, 2020
Created on Aug 31, 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 visualization uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis, with custom tick formatting that converts values to abbreviated labels like "B" for billions. The code customizes D3 axes by removing default domain lines, adding gridlines via tickSize, and styling axis labels, while the data is loaded from a CSV file and rendered as SVG rectangles.

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