Skip to main content
Public

Share visualization

Loading preview…

Making Bar Chat

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 Bar Chat

3
Aatayyaba
Last edited Mar 26, 2020
Created on Mar 26, 2020
Forked from Making Bar Chat

This example shows a horizontal bar chart of country populations, with bars sorted alphabetically by country name. The chart uses a linear scale for population values and a band scale for countries, with axes labeled accordingly. Rendered as an SVG, the visualization loads data from an external CSV file using D3's `csv` function, then applies `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from D3 v5 to construct the chart and support resizing.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed