Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Mmatthewfresh
Last edited Mar 19, 2020
Created on Mar 16, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries, with custom formatting on the population axis that converts values into billions using a "B" suffix. It loads data from a CSV file and renders SVG bars using D3 v5, applying a linear scale for population and a band scale for countries. The chart uses `d3.axisLeft` and `d3.axisBottom` with tick customization, removes default axis lines, and adds a title and axis label.

AI-generated description
MIT Licensed

Similar vizzes