Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Jjwadh
Last edited Feb 21, 2022
Created on Feb 21, 2022
Forked from Customizing Axes

This bar chart shows the populations of the top 10 most populous countries, based on 2018 United Nations estimates. The visualization uses d3.scaleLinear for the population axis and d3.scaleBand for country categories, with custom d3.axisLeft and d3.axisBottom ticks. The code formats population labels using d3.format and removes default axis lines for a cleaner look. Data loads from a CSV file, while SVG rendering occurs through d3.select and shape elements, with styling controlled by CSS classes.

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