Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Hhyejinid
Last edited Jun 4, 2020
Created on Jun 4, 2020
Forked from Customizing Axes

This visualization displays a bar chart of the population for the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. The example demonstrates how to customize D3 axes, building upon a basic bar chart. The code uses d3.select, d3.scaleBand, d3.scaleLinear, and d3.axisLeft, d3.axisRight, and d3.axisBottom to create and style the chart's axes, with tick text and line colors defined in CSS. Population values are shown on the y-axis.

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