Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Llystran
Last edited Apr 17, 2020
Created on Apr 17, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart highlights custom D3 axis styling, including tick lines that extend across the plot area, custom labels, and a formatted x-axis that converts large numbers into billions. The visualization uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to build the chart, with CSS controlling the appearance of ticks and text. Data is loaded from a CSV file and rendered as SVG within a 960 by 500 viewport.

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