Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

c5e1d65d05d74b15a21d4babd65dc224

Customizing Axes

0 stars1🌍 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