Skip to main content
100%

Customizing Axes with D3.js!

✓ Published0🌍 Public
AAnderson Banihirwe
Last edited Aug 26, 2020
Created on Aug 26, 2020

This bar chart displays the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. Using D3.js v5, the visualization employs `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, with `d3.axisLeft` and `d3.axisBottom` generating the axes. The chart customizes the x-axis tick labels via `tickFormat` to abbreviate large numbers, converting gigabytes notation to billions. Data is loaded from a CSV file and rendered as SVG rectangles filled with steelblue.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimates in United Nations: World Population Prospects 2017

MIT Licensed

Similar vizzes