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

1
Ddjfeld01
Last edited Mar 1, 2021
Created on Feb 28, 2021

This chart displays population data for the top 10 countries in 2020 using horizontal bars, with country names on the y-axis and population values on the x-axis. Built with React and D3 v6, the visualization uses D3's `scaleBand` and `scaleLinear` for axes, `format` for tick labels, and SVG elements for rendering. Data is loaded asynchronously via D3's `csv` function from a UN Population dataset. A tooltip reveals the exact population value for each bar.

AI-generated description

A program that loads in some D3 [data about CSS named colors] and uses React STATE to keep track

Comments

Sign in to join the discussion.

MIT Licensed