Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
JJijoThankachan
Last edited Nov 25, 2019
Created on Nov 25, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 United Nations population estimates, with country names on the y-axis and population values on the x-axis. The visualization emphasizes axis customization: x-axis labels use a custom tick formatter that abbreviates numbers and converts "G" to "B" for billions, while tick lines extend across the chart and grid lines are removed. The code employs d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom, rendering as SVG elements styled with custom fonts and colors.

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