Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Kkafom
Last edited Jul 23, 2019
Created on Jul 23, 2019
Forked from Customizing Axes

This bar chart displays freshwater withdrawals for the top 10 countries, using data from a UBC freshwater dataset formatted with d3.csv. It builds on a basic bar chart by customizing the axes: the y-axis labels are enlarged with tick text styling, while the x-axis uses a custom tick format that converts values from gigabytes to billions via d3.format. Axis lines and domain paths are removed for a cleaner look, and labels for the title and x-axis are added with custom class-based styling. The chart uses d3.scaleLinear, d3.scaleBand, axisLeft, and axisBottom within an SVG rendered by D3 v5.

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