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

0
KKirsten Lund
Last edited Feb 17, 2021
Created on Feb 17, 2021
Forked from Stylized Bar Chart

A stylized bar chart displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset. Using React and D3 v5, the visualization encodes population counts as horizontal bars via SVG `<rect>` elements, with axes rendered by custom `AxisBottom` and `AxisLeft` components. The code constructs scales with `d3.scaleBand` and `d3.scaleLinear`, formats tick labels with `d3.format`, and provides tooltips through SVG `<title>` tags. The chart’s distinct styling includes the Poppins font and a teal color scheme.

AI-generated description

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

<!-- Data: [United Nations World Population Prospects 2019](https://gist.github.com/curran/0ac4077c7fc6390f5dd33bf5c06cb5ff). --><!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/3jIF4Z3iIoM" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->

Comments

Sign in to join the discussion.

MIT Licensed