Skip to main content
100%

customizing the axes

✓ Published1🌍 Public
Tthebeef5
Last edited Jan 13, 2021
Created on Jan 13, 2021
Forked from Bar Chart 2

This example shows a bar chart of population data for the top 11 countries, with a customized y-axis that removes its domain line and tick marks, and an x-axis that uses a formatted tick label converting values to billions (e.g., "1.42B"). The chart is rendered using SVG and D3 v5, with `scaleLinear` and `scaleBand` for positioning, and `axisLeft` and `axisBottom` to generate the axes. Data is loaded from a CSV and the tick format is applied via `format('.3s')`.

AI-generated description
MIT Licensed

Similar vizzes