Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Llinh-pham-nz
Last edited Nov 28, 2019
Created on Nov 28, 2019
Forked from Making a Bar Chart

This graphic shows a horizontal bar chart of the top ten most populous countries, with a linear x-axis formatted to display values in billions (e.g., "1.42B"). The y-axis lists country names without gridlines. Built with D3 v5 and rendered as SVG, the example uses `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisBottom` to customize tick formatting and remove vertical gridlines on the categorical axis. Population data is loaded from a CSV and multiplied by 1000 before rendering.

AI-generated description
MIT Licensed

Similar vizzes