Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Jjblaskovich
Last edited May 3, 2020
Created on May 3, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries, using a linear scale for population and a band scale for country names. The y-axis labels are enlarged, while the x-axis applies a custom tick formatter that converts values into abbreviated units (e.g., "1.42B"). The chart uses `d3.csv` to load data, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` with SVG rendering. The axis domain lines are removed, and tick marks extend across the plot area.

AI-generated description
MIT Licensed

Similar vizzes