Skip to main content
100%

Barchart custom axis

✓ Published0🌍 Public
TTimvanAlphen
Last edited Nov 8, 2020
Created on Nov 5, 2020
Forked from Barchart intro

A horizontal bar chart displays population figures for ten countries, with a custom x-axis that abbreviates large numbers (e.g., 'B' for billions) via `d3.format`. The chart uses `d3.scaleLinear` for the x-scale and `d3.scaleBand` for the y-axis, with axes generated by `d3.axisLeft` and `d3.axisBottom`. Data is loaded from a CSV using `d3.csv`, and the SVG rendering includes gridlines via tick sizes and removes default axis domains for a clean look.

AI-generated description
MIT Licensed

Similar vizzes