Skip to main content
Public

Share visualization

Loading preview…

Bar chart population

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 population

1
PPeter S
Last edited Aug 14, 2019
Created on Aug 12, 2019
Forked from lets make a face

This bar chart visualization displays population data for ten countries, with horizontal bars representing each nation’s population in thousands. The chart uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` to render axes. Data is loaded asynchronously from a CSV file via `d3.csv` and converted to numbers. The SVG rendering is structured with margins, and bars are appended as `rect` elements with steelblue fill.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed