Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ssheafallick
Last edited Dec 14, 2022
Created on Dec 14, 2022
Forked from Making a Bar Chart

This bar chart displays the populations of six global cities, ordered by name on the y-axis and scaled linearly on the x-axis. It uses D3 v7’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart, with custom tick formatting that abbreviates millions to "m". Horizontal gridlines are drawn via negative tick lengths, while the y-axis domain and tick lines are removed. The chart is rendered as SVG, with population data loaded from a CSV file.

AI-generated description

This bar chart shows the populations of the best global cities! - Shea Gazette

MIT Licensed

Similar vizzes