Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Rendering Data with React

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

Fork of Fork of Rendering Data with React

1
AAnthony Zornig
Last edited Oct 3, 2021
Created on Oct 3, 2021

This bar chart displays the top 10 countries by projected 2020 population from a CSV dataset. It uses React’s `useState` and `useEffect` hooks to fetch and parse the data with `d3.csv`, then maps the data to SVG rectangles. D3’s `scaleBand` positions bars on the y-axis, while `scaleLinear` scales the x-axis based on population values from `d3.max`. The visualization is rendered using `ReactDOM`, producing generic colored rectangles without labels or axes.

AI-generated description

A program that loads in some [data about css named Colors] https://gist.github.com/curran/b236990081a24761f7000567094914e0 using D3 utilities, and uses React statr to render the Data.

Comments

Sign in to join the discussion.

MIT Licensed