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

0
Mmuddcohd
Last edited Jun 13, 2022
Created on Jun 9, 2022

This example shows a horizontal bar chart of population figures for the ten most populous countries, using a CSV data source. It applies a linear scale for population values and a band scale for country names, with axes generated via `axisLeft` and `axisBottom`. The chart renders as SVG rectangles filled with steelblue, and the population values are converted from thousands to raw numbers before scaling.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed