Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
IIan Perry
Last edited Jun 17, 2020
Created on Jun 17, 2020
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, based on 2018 estimates from the World Population Prospects 2017. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the chart in SVG. Axes are customized by removing default domain lines, adding tick marks that span the full chart height, and formatting population values with `format('.3s')` to show billions. The y-axis labels are sorted by population, with a title and axis label styled via 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 [World Population Prospects 2017]

MIT Licensed

Similar vizzes