Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customising Axis

Public visualization

Viewing a saved revision (read-only)

6b162f06130d42c8ba5d2eef925f4d01

Customising Axis

0 stars1🌍 Public
Jjeelong
Last edited Jun 16, 2020
Created on Jun 16, 2020
Forked from Making a bar chart

A horizontal bar chart displays the populations of the world's most populous countries, sorted by rank. The example customizes both axes: the y-axis removes domain lines and ticks, while the x-axis formats population values with d3.format and replaces "G" with "B" for billions. Built with D3 v5 in React, it uses scaleLinear, scaleBand, axisBottom, and axisLeft to render SVG elements, with data loaded from a CSV file.

AI-generated description

React Starter code.