Skip to main content
Public

Share visualization

Loading preview…

Refactored 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

Refactored Bar chart

0
KKirsten Lund
Last edited Feb 15, 2021
Created on Feb 15, 2021

This bar chart displays the population of ten countries from a United Nations 2019 dataset, using horizontal bars to compare values. The visualization is built with React and D3 v6, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG rectangles render the marks, while custom React components encapsulate the axes and data mapping. Population values are parsed from CSV and sorted by the top ten entries.

AI-generated description

Bar chart using world population data - D3 & React.

<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/JMvnd1CIRNo" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->

Comments

Sign in to join the discussion.

MIT Licensed