Skip to main content
Public

Share visualization

Loading preview…

Refectoring a 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

Refectoring a Bar Chart

1
TtrwMK
Last edited Oct 15, 2022
Created on Oct 15, 2022

A bar chart displays the top 10 countries by population from a United Nations dataset loaded via `d3.csv`. React components render the SVG axes and bars, with scales created using `d3.scaleBand` and `d3.scaleLinear`. The chart is refactored into reusable modules for the bottom axis, left axis, and marks, demonstrating a clean separation of visualization logic.

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