Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Mmi-desai
Last edited Nov 14, 2019
Created on Nov 14, 2019
Forked from Customizing Axes

This bar chart shows the population of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects estimate. It demonstrates how to customize D3 axes by using `d3.axisBottom` and `d3.axisLeft` to add grid lines, remove the domain, and format tick labels with `d3.format`. The chart also includes custom axis labels and a title, rendered as SVG with margins. Data is loaded from a CSV file via `d3.csv` and scaled with `d3.scaleLinear` and `d3.scaleBand`.

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