Skip to main content
Public

Share visualization

Loading preview…

Fork 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 Stylized Bar Chart

1
SSampras Dsouza
Last edited Jul 5, 2022
Created on Jun 13, 2022
Forked from Stylized Bar Chart

This example shows the top 10 most populous countries as a horizontal bar chart, with country names on the y-axis and population formatted in billions on the x-axis. It uses React with SVG rendering, the d3.scaleBand and d3.scaleLinear scales for positioning, and d3.csv for loading the UN World Population Prospects 2019 dataset. Custom AxisBottom and AxisLeft components render ticks, while Marks draws rectangles with native SVG tooltips. The chart uses a teal color for bars and the Poppins font.

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