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

1
SSamuel Elbaz
Last edited Oct 29, 2019
Created on Oct 28, 2019
Forked from Making a bar chart

This bar chart displays the populations of ten countries, using horizontal bars ordered from most to least populous. Built with D3.js, it uses `scaleLinear` for the population axis and `scaleBand` for the categorical country labels, with axes generated via `axisLeft` and `axisBottom`. The SVG rendering applies a steelblue fill to the rectangles, and the data is loaded from a CSV file.

AI-generated description

test

Comments

Sign in to join the discussion.

MIT Licensed