Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 Public
JJoshua Everett
Last edited Dec 27, 2020
Created on Dec 27, 2020
Forked from D3 Starter

This bar chart displays the top 10 most populous countries using a horizontal layout, with population sizes mapped to bar widths and country names on the y-axis. The chart is built with D3 v6, using `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisBottom` and `axisLeft` for ticks. Data is loaded from a CSV file, and the chart is rendered as SVG. The visualization includes axis labels, a title, and a custom tick formatter that converts large numbers to billions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed