Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
LLonwabo11
Last edited May 6, 2019
Created on May 3, 2019
Forked from Customizing Axes

This example shows a horizontal bar chart of population figures for nine countries, with a customized x-axis that uses abbreviated tick labels (e.g., “1.50M”). The chart is rendered as SVG using D3 v5, with data loaded from a local CSV file. The code employs `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, `d3.axisLeft`, and `d3.format` to position bars and axes. The y-axis lists country names, while the x-axis range is set from zero to the maximum population value.

AI-generated description
MIT Licensed

Similar vizzes