Skip to main content
100%

Customizing Axes

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

This bar chart displays the top 10 most populous countries based on 2018 United Nations data, with a dropdown selector that highlights a chosen country in orange. Customized D3 axes show population values in abbreviated format on the x-axis and country names on the y-axis, with gridlines and margins adjusted. The example uses d3.axisBottom, d3.axisLeft, d3.scaleBand, d3.scaleLinear, and d3.format to handle the data-driven rendering.

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