Skip to main content
Public

Share visualization

Loading preview…

Let's Make a Bar Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Let's Make a Bar Chart

0
Dduckmammal
Last edited Nov 20, 2020
Created on Nov 20, 2020

A horizontal bar chart displays population counts for ten countries, using bars to represent values from China down to Mexico. The chart is built with D3 v6, using `scaleLinear` for the x-axis population scale and `scaleBand` for the categorical y-axis of country names. Data is loaded from a CSV file, with population values multiplied by 1000, and rendered as SVG rectangles inside a chart area with margins.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed