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
Ss-janibekova
Last edited Oct 31, 2019
Created on Oct 31, 2019
Forked from Making a bar chart

This example displays a horizontal bar chart of population counts for the ten most populous countries, using data from a CSV file. The chart encodes population as bar width and country names along the vertical axis, with axes generated using `d3.axisLeft` and `d3.axisBottom`. It employs `d3.csv` for data loading, `d3.scaleLinear` and `d3.scaleBand` for scaling, and appends SVG `rect` elements to render the bars. The source data is loaded from `data.csv`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed