Skip to main content
100%

Customized Axis

✓ Published0🌍 Public
Aatayyaba
Last edited Mar 24, 2020
Created on Mar 24, 2020
Forked from Customized Axis

This example displays a horizontal bar chart of the top 10 most populated countries, using a customized axis to improve readability. The chart uses D3 v5 APIs, including `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. A custom axis label formats large numbers in a concise way (e.g., converting 'G' to 'B'), while axis lines and domains are selectively removed for a cleaner presentation. Labels and tick marks are styled with custom colors and fonts via CSS. Data is loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes