Skip to main content
Public

Share visualization

Loading preview…

Making a barchart

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

Making a barchart

0 stars7Public
JJake
Last edited Jul 13, 2020
Created on May 28, 2020
Forked from Hello VizHub

A horizontal bar chart displays the populations of ten countries, with China and India leading and Mexico trailing. The visualization uses D3 v5 APIs including `csv` for loading data, `scaleLinear` and `scaleBand` for scales, and `axisLeft`/`axisBottom` for axes. Population values are converted from thousands to absolute numbers before rendering as SVG rectangles, styled with steelblue fill.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed