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

1
KKrishu
Last edited Aug 5, 2020
Created on Aug 5, 2020
Forked from Bar Chart

A horizontal bar chart displays population estimates for ten countries, with bar length encoding each nation’s population value. The visualization uses D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis, rendering SVG rectangles via `svg.selectAll('rect')`. Data is loaded from a CSV file using `d3.csv`, with population values multiplied by 100 during preprocessing. The chart is fully responsive to the SVG’s width and height attributes, with no axes or labels added.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed