Skip to main content
100%

D3JS bar chart custom axis

✓ Published1🌍 Public
FFedor Sharygin
Last edited Mar 5, 2021
Created on Mar 4, 2021
Forked from D3JS bar chart

A D3.js v6 bar chart displays population counts for nine countries using an SVG rendering with a custom horizontal axis. The axis converts D3’s default SI-prefix formatting (like “1.4G”) into readable labels using “B” for billions via `axisBottom` and `format('.3s')`. The vertical axis uses a band scale for country names, while bar widths come from a linear scale over population values loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes