Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Nntds12
Last edited Mar 22, 2020
Created on Mar 22, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the ten most populous countries, with population values transformed from thousands to absolute numbers. The chart customizes both axes: the y-axis removes domain lines and tick marks, while the x-axis uses a tick formatter via `d3.format` to abbreviate numbers and replace "G" with "B". The code uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and `d3.axisLeft` and `d3.axisBottom` to render the axes. Data is loaded from a CSV file using `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes