Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
Nnkrpyate
Last edited Mar 9, 2020
Created on Mar 2, 2020
Forked from Customizing Axes

This visualization displays a horizontal bar chart ranking the top 10 countries by population, using a custom-tuned axis to improve readability. The code uses d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisBottom with a custom tick formatter that converts large numbers into abbreviated units like "B" for billions. Data loads from a CSV file via d3.csv, with population values multiplied by 1000. The chart also includes gridlines, a title, and styled sans-serif text.

AI-generated description
MIT Licensed

Similar vizzes