Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axis

Public visualization

Viewing a saved revision (read-only)

1c2c60420174415aae6f3a2ca9eff8e4

Customizing Axis

0 stars0🌍 Public
Aantoinecarto
Last edited Jul 4, 2019
Created on Jul 4, 2019
Forked from Making a bar chart

A horizontal bar chart displays the populations of the ten most populous countries, using a CSV data source. The D3 v5 code loads the data and builds the visualization with an SVG canvas, applying a linear scale to the population axis and a band scale for country names. The chart customizes both axes by removing their domain lines, applying a custom tick format that abbreviates large numbers with 'B' for billions, and adding styled labels. The y-axis labels and tick lines are removed entirely, while the x-axis includes negative tick lines extending across the plot area.

AI-generated description