Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Mmi-jjang
Last edited Sep 23, 2020
Created on Sep 20, 2020
Forked from Customizing Axes

This example displays a bar chart of population data for six unspecified countries, based on a 2018 United Nations estimate. It demonstrates customizing D3 axes by placing the y-axis on the right side, removing grid lines, and formatting tick labels with abbreviations (e.g., converting "G" to "B" for billions). The chart uses D3 v5 with `scaleBand` for bars, `scaleLinear` for the y-axis, and `axisLeft` and `axisBottom` to render axes. The data is loaded from a CSV file, and the visualization is rendered as SVG.

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