Skip to main content
100%

Customizing Axes

✓ Published3🌍 Public
SSkye-milu
Last edited Aug 1, 2019
Created on Aug 1, 2019
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, using data from the United Nations’ 2018 World Population Prospects estimate. It showcases D3 axis customization, including formatted tick labels, removed domain lines, and styled grid lines. The chart uses `d3.scaleLinear` for the population axis and `d3.scaleBand` for country categories, with `d3.axisBottom` and `d3.axisLeft` to render the axes. The SVG output features a steelblue fill for bars and custom text styling defined in CSS.

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