Skip to main content
Public

Share visualization

Loading preview…

Lesson 2

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

Lesson 2

2
0007ebey
Last edited Aug 18, 2020
Created on Feb 21, 2020

A horizontal bar chart displays population estimates for a small set of countries, using data from the World Bank. The visualization renders as an SVG, with a linear scale mapping population values to bar widths and a band scale positioning each country along the vertical axis. Built with React and D3 v5, the code imports `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `csv` to load and draw the chart. Axis labels and axis tick formatting are generated through D3’s axis components.

AI-generated description

A bare minimum HTML page.

See also React Starter.

This data was taken from The world bank data website

Comments

Sign in to join the discussion.

MIT Licensed