Customizing Axes
This example visualizes world population by continent for 2020, using a horizontal bar chart with customized axes. The bars display population values in thousands, while the x-axis labels are formatted with a `.3s` format and converted from billions to a custom notation. The code leverages d3.csv, scaleLinear, scaleBand, axisBottom, and axisLeft from D3 v5, with the y-axis stripped of its domain line and tick lines. The x-axis includes a label and tick marks extending across the chart. Data comes from the UN World Population Prospects 2020.
AI-generated descriptionD3 Basics This bar chart showes population of the World by continents. It is build on the basis of the data from the year 2020 estimate in World Population Prospects 2020
Lessons by Curran Kelleher in Youtube