Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
DDaniel Prevoznik
Last edited May 4, 2020
Created on May 4, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top ten most populous countries, using horizontal bars ordered by country name. The code uses D3 v5’s `scaleBand` and `scaleLinear` to map data, while `axisBottom` and `axisLeft` generate the axes with custom tick formatting via `d3.format` to abbreviate large numbers. The y-axis grid lines are removed, and the chart is rendered as SVG with styling from CSS.

AI-generated description
MIT Licensed

Similar vizzes