Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Vvic126
Last edited Jun 24, 2020
Created on Jun 24, 2020
Forked from Making a Bar Chart

This bar chart displays population estimates for ten countries using data from the United Nations World Population Prospects 2017, with each bar’s width scaled linearly by population. The visualization customizes both axes: the left axis removes its domain line and tick marks, while the bottom axis uses d3.axisBottom with a custom tick formatter that converts numbers into abbreviated “B” (billion) notation and extends tick lines across the plot height. The chart also removes the x-axis domain line and labels the population axis with a text element, with all elements rendered as SVG via d3-selection and d3-scale functions.

AI-generated description

This bar chart shows population of the countries. The data comes from the year 2020 estimate in United Nations: World Popultion Prospects 2017.

MIT Licensed

Similar vizzes