Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
TTrustPaul
Last edited Dec 7, 2020
Created on Dec 7, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. It demonstrates customizing D3 axes by removing the y-axis domain and tick lines, adding an x-axis label, and formatting tick labels with `d3.format` to abbreviate numbers (e.g., converting G to B). The chart uses `d3.scaleBand` for the y-axis, `d3.scaleLinear` for the x-axis, and renders with SVG. Data is loaded from a CSV file, with populations multiplied by 1000 to reflect actual values.

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