Skip to main content
Public

Share visualization

Loading preview…

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

Bar Chart

0 stars1Public
KKrishna.
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from HTML Starter

A horizontal bar chart displays the top 10 countries by population in the year 2000, with bars extending from a zero baseline. The chart loads a CSV dataset from a GitHub gist and uses D3 v7 to parse the data, sort it in descending order, and render the bars as SVG rectangles using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Hovering over a bar changes its fill color.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed