Skip to main content
Public

Share visualization

Loading preview…

Axis 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

Axis with React

1
Ddumbdataguy@gmail.com
Last edited Nov 26, 2023
Created on Nov 26, 2023
Forked from Margin Conventions

This example shows a horizontal bar chart of the top 10 countries by population in 2020, using data loaded from a CSV file via `d3.csv`. React renders an SVG containing scaleBand and scaleLinear axes, with custom tick marks and labels generated from `xScale.ticks()`. The bars are drawn as `<rect>` elements using D3’s scale functions, while React hooks (useState, useEffect) manage data loading and state. The chart updates automatically once the data arrives, displaying a clean, styled visualization with a left margin for country names.

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