Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Aalesrinija
Last edited Aug 1, 2020
Created on Aug 1, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries using 2018 United Nations estimates, with custom styling applied to the axes. The code uses `d3.csv` to load data, `d3.scaleLinear` and `d3.scaleBand` for scaling, and `d3.axisBottom` and `d3.axisLeft` to render axes. It customizes the x-axis tick format with `d3.format`, removing gridlines and domain lines, and adds axis 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