Skip to main content
Public

Share visualization

Loading preview…

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

Stylized Bar Chart

2
Sstephanie0215
Last edited Sep 29, 2022
Created on Sep 29, 2022

This stylized bar chart displays the population of ten countries using horizontal bars, with country names on the y-axis and population counts on the x-axis. The visualization uses React state via hooks to load and manage CSV data from a GitHub gist, while D3 v7 utilities like `scaleBand` and `scaleLinear` handle the scaling. The SVG rendering includes custom axis components and tooltips that format values using D3's `format` function. The chart features a clean, modern aesthetic with Poppins typography and muted teal and gray colors.

AI-generated description

A program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed