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
Mmanalhilali
Last edited Nov 29, 2020
Created on Nov 29, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the ten most populous countries, using population data loaded from a CSV file. It renders as SVG with D3 v5, using `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`. The bars are filled with steelblue, the x-axis tick labels are formatted with `d3.format` to abbreviate large numbers, and grid lines extend from the x-axis across the plot area.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed