Skip to main content
Public

Share visualization

Loading preview…

The Margin Convention

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

The Margin Convention

1
MMilena Belianovich Holtman
Last edited Oct 12, 2022
Created on Oct 12, 2022
Forked from Pathetic Bar Chart

This visualization displays the top 10 most populous countries in 2020 as horizontal bars, with each bar’s length proportional to its population. The chart is rendered as an SVG using React components, with data loaded via D3’s `csv` utility. Margins are applied to position the inner group, while `scaleBand` and `scaleLinear` map country names and population values to pixel coordinates. The code also includes commented-out logic for generating pie arcs with `arc()` and `pie()`, though the active view uses simple rectangles.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

Comments

Sign in to join the discussion.

MIT Licensed