Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axis

Public visualization

Viewing a saved revision (read-only)

8e412df43738406d831f2615e1269210

Customizing Axis

0 stars1🌍 Public
PPredrag Nikolic
Last edited Apr 3, 2021
Created on Apr 3, 2021
Forked from Making a bar chart

This example shows a horizontal bar chart of the world’s most populous countries, ranking China, India, and the United States at the top by population. It uses D3 v6’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the axes and bars in SVG. The x-axis uses `tickFormat` to abbreviate large numbers and `tickSize` to draw grid lines. Data loads from a CSV file and is parsed with `d3.csv`, while axis labels and a title are styled via CSS.

AI-generated description

This is Free Code Camp course code