Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
MModalMBS
Last edited Sep 21, 2020
Created on Sep 21, 2020
Forked from Making a Bar Chart

This example displays a horizontal bar chart of the ten most populous countries, with population values on the x-axis and country names on the y-axis. It uses D3 v6’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the SVG. The code customizes tick labels by converting large numbers (e.g., G to B) via `format`, removes gridlines on the y-axis, and adds axis and title text. Data comes from a CSV file loaded with `csv`, and population values are multiplied by 1000 for display.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes