Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axis

Public visualization

Customizing Axis

0 stars1🌍 Public
AAlex Reitz
Last edited Mar 26, 2020
Created on Mar 26, 2020
Forked from Making a bar chart

This bar chart displays the populations of the top 10 most populous countries using a horizontal layout, with country names on the y-axis and population totals on the x-axis. The chart uses d3.csv to load data from a local CSV file and renders with SVG. The code customizes the axes through d3.axisLeft and d3.axisBottom, applying a custom tick format that converts values from G to B, and removes gridline domains. A title and axis label are added as SVG text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed