Skip to main content
Public

Share visualization

Loading preview…

Making a 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

Making a bar chart

0
Ppengming0807
Last edited Jan 16, 2022
Created on Jan 16, 2022

A bar chart displays population estimates for six global regions from a CSV file, showing Africa, Asia, Europe, Latin America and the Caribbean, Northern America, and Oceania. The visualization uses D3 v5’s `select` and `csv` methods to load the data, then converts each population value from millions to thousands. The SVG chart is rendered at 960 by 500 pixels, with the page styled to remove margins and hide overflow. The code currently logs the processed data to the console, laying the foundation for drawing bars.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed