Skip to main content
Public

Share visualization

Loading preview…

Making 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

Making a Bar Chart

2
LLex
Last edited Mar 17, 2020
Created on Mar 17, 2020

This bar chart displays population figures for a set of countries, with horizontal bars ordered by country name along the y-axis and population magnitude along the x-axis. The visualization uses D3 v5’s `csv` loader to parse the data, `scaleLinear` and `scaleBand` to map values, and `axisLeft` and `axisBottom` to render axes. Population values are multiplied by 1,000 after loading, and bars are drawn as SVG rectangles filled with steel blue.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed