Skip to main content
100%

Custmizing Axes!

✓ Published0🌍 Public
Ccathykan
Last edited Apr 25, 2020
Created on Apr 25, 2020

This example displays a horizontal bar chart ranking the populations of ten countries, with custom axes and tick formatting. Population values are shortened using a `format` function that replaces 'G' with 'B'. The chart uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to construct the visualization, with SVG rendering defined in `styles.css`. Data is loaded from `data.csv` via `d3.csv` and multiplied by 1000 to reflect actual population numbers.

AI-generated description
MIT Licensed

Similar vizzes