Skip to main content
100%

CustomiZing Axes

✓ Published1🌍 Public
Ppeterjchan
Last edited Mar 25, 2020
Created on Mar 25, 2020
Forked from Make a bar chart

This example shows a horizontal bar chart of the top ten most populous countries, using population data from a CSV file. The chart customizes both axes: the y-axis removes domain lines and tick marks, while the x-axis uses `d3.axisBottom` with a tick format that converts large numbers to abbreviated labels like "1.42B". Bars are rendered with SVG `rect` elements, scaled by `d3.scaleLinear` and `d3.scaleBand`. The code imports specific D3 v5 modules via ES6 destructuring, including `select`, `csv`, `scaleLinear`, `max`, `scaleBand`, `axisLeft`, `axisBottom`, and `format`.

AI-generated description
MIT Licensed

Similar vizzes