Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Qqazwsxedcrfv12345
Last edited May 7, 2019
Created on May 7, 2019
Forked from Customizing Axes

This bar chart displays the populations of billionaires Jeff Bezos and Bill Gates, using a horizontal bar layout with customized axes. The data is loaded from a CSV file and scaled with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. It uses `d3.axisBottom` and `d3.axisLeft` to render ticks, with a custom `d3.format` function that converts values to abbreviated units. The chart removes default axis domain lines and adds custom labels and a title via SVG text elements.

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