Skip to main content
Public

Share visualization

Loading preview…

Lesson 3

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 3

2
0007ebey
Last edited Apr 12, 2020
Created on Feb 22, 2020
Forked from Lesson 3

This example uses D3 v5 within a React framework to render a bar chart as an SVG, displaying population data from the World Bank for selected countries. The chart encodes population values with bar heights. The code loads data from a CSV file and uses D3’s selection and scaling APIs to map the data to the chart’s coordinates. The SVG is styled with CSS rules from an external stylesheet, defining colors for bars, text, and axis elements. The visualization demonstrates how to transition from a raw data source to a clean, client-ready presentation.

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