Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
ÁÁlvaro Cáceres Muñoz
Last edited Feb 13, 2021
Created on Feb 13, 2021
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries, with population values formatted in billions using a custom tick formatter that replaces "G" with "B" in d3.format output. The chart uses d3.csv, scaleLinear, scaleBand, axisBottom, and axisLeft to render horizontal bars, with gridlines extending from x-axis ticks. A title and axis label are added via SVG text elements, and the y-axis domain lines and tick marks are removed while the x-axis domain is hidden, leaving a clean, focused visualization.

AI-generated description
MIT Licensed

Similar vizzes