Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Bbart
Last edited Jul 25, 2019
Created on Jul 25, 2019
Forked from Customizing Axes

This bar chart shows the top 10 most populous countries in 2018, based on United Nations World Population Prospects data, with a focus on customized axes. It builds on a basic bar chart by applying `d3.axisBottom` with a custom tick formatter for compact notation, and positions the axis using a transform. The chart uses `d3.scaleLinear` for population and `d3.scaleBand` for countries, rendering bars as SVG `rect` elements with custom CSS styling for ticks and labels.

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