Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Custmizing Axes!

Public visualization

Custmizing Axes!

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed