Skip to main content
100%

Customizing Axis with D3.js

✓ Published1🌍 Public
DDaniel Rivera
Last edited Apr 19, 2020
Created on Apr 19, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries using D3.js v5 in React, rendering to SVG. It customizes the axes by removing the y-axis domain and tick lines, adding a centered population label, and formatting x-axis tick values with `d3.format` to abbreviate billions as “B.” The chart uses `scaleLinear` and `scaleBand` for positioning, with `axisLeft` and `axisBottom` to construct the axes, and loads population data from a CSV file.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes