Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
Nnick-yadav
Last edited Aug 11, 2020
Created on Aug 11, 2020
Forked from Making a Bar Chart

This bar chart displays the top ten most populous countries, with population values shown on a horizontal axis and country names on a vertical axis. The visualization uses D3 v5 with SVG rendering, employing `scaleLinear` for the population scale and `scaleBand` for country categories. Axis customization includes tick formatting via `format('.3s')` that replaces 'G' with 'B' for billions, plus removal of axis domain lines and grid-line styling through `axisBottom` and `axisLeft` calls. Population data from CSV files is converted to absolute numbers by multiplying by 1000.

AI-generated description
MIT Licensed

Similar vizzes