Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
LLonwabo11
Last edited May 10, 2019
Created on May 9, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries based on 2018 United Nations data, with a particular focus on axis customization. The visualization demonstrates how D3’s `scaleBand` for the categorical x-axis and `scaleLinear` for the numeric y-axis are styled with custom tick text sizes, colors, and tick line strokes via CSS. It also includes labeled axes and a title, using the `axisBottom` and `axisLeft` API functions. The chart is rendered as SVG within an HTML page, and the code references external CSV data for the temperatures.

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