Skip to main content
Public

Share visualization

Loading preview…

Stylised 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

Stylised Bar Chart

0
Bbsolomon103
Last edited Jan 3, 2022
Created on Jan 3, 2022

This stylized bar chart displays the populations of the ten most populous countries for 2020, using horizontal bars sorted by country name. The visualization pairs D3 v7 utilities for data loading and scaling with React components for rendering SVG elements. D3’s `csv` fetches the UN population data, while `scaleBand` and `scaleLinear` position the bars on the y- and x-axes. React manages the loading state, displaying “Loading...” until the data arrives, then renders each bar as an SVG `<rect>`.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities and uses React to render the data.

Comments

Sign in to join the discussion.

MIT Licensed