Customizing Axes
✓ Published1🌍 Public
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 descriptionThis bar chart shows the populations of the best global cities! - Shea Gazette
MIT Licensed