Skip to main content
Public

Share visualization

Loading preview…

Fork of Fffork of Stylized 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

Fork of Fffork of Stylized Bar Chart

0
Ssucotton9
Last edited Jul 15, 2021
Created on Jul 15, 2021

This stylized bar chart displays the top 14 countries by migrant population in 2020, ranked on the y-axis with horizontal bars extending along the x-axis. Built with React and rendered as SVG, it uses D3 v5 scales and formatters: `scaleBand` for categorical y-axis positioning, `scaleLinear` for the numeric x-axis, and `format` to abbreviate large numbers with a custom tick formatter that converts gigabytes to billions. Data is fetched from a CSV file using the `fetch` API and parsed via `d3.csvParse`, with a Poppins font and custom axis colors.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed