Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
ZZY Huang
Last edited Apr 12, 2020
Created on Apr 12, 2020
Forked from Customizing Axes

A bar chart displays the population of the top 10 countries, with a custom x-axis that formats large numbers into billions (e.g., "3.41B"). Built with D3 v5, the visualization uses `d3.scaleLinear` and `d3.scaleBand` for the axes, and `d3.axisBottom` with a custom tick format. The y-axis labels are left-aligned, and gridlines extend across the chart via `tickSize`. Data is loaded from a CSV file using `d3.csv`, and the squares are rendered as SVG rectangles.

AI-generated description

The bar chart shows population of the top 10 (http://)

MIT Licensed

Similar vizzes