Skip to main content
100%

Formatting Axis

✓ Published0🌍 Public
Rrebeccayc
Last edited Jan 20, 2020
Created on Jan 20, 2020
Forked from Making a Bar Chart

This example displays a horizontal bar chart of the top 10 most populous countries, with population values formatted using a custom tick format that replaces "G" with "B" for billions. The chart uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisLeft and d3.axisBottom to render axes with tick lines extending across the plot. The SVG rendering includes a title, axis labels, and steelblue rectangles for each bar.

AI-generated description
MIT Licensed

Similar vizzes