Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
AAustin0524
Last edited Oct 3, 2022
Created on Oct 3, 2022
Forked from Making a Bar Bhart

This horizontal bar chart displays the top 10 most populous countries, using a logarithmic-free linear scale for population values. The chart customizes the x-axis tick labels by reformatting large numbers (e.g., converting billions to "B" notation) and styling gridlines, while removing the y-axis domain and tick lines. It renders with D3 v7’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, reading population data from a CSV and drawing steel-blue rectangles via SVG.

AI-generated description
MIT Licensed

Similar vizzes