Skip to main content
Public

Share visualization

Loading preview…

Fork of React & D3 Starter

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

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 & exportHTML, source ZIP

Fork of React & D3 Starter

0 stars1Public
SSampras Dsouza
Last edited Jun 22, 2022
Created on Jun 22, 2022
Forked from React & D3 Starter

This scatterplot of the Iris dataset plots sepal length against petal length, with each flower represented as a translucent circle. Built as a starter template, it demonstrates a decoupled React and D3 integration: React manages the component lifecycle and SVG container, while D3 handles scales and rendering. The code uses D3 v7’s `csv`, `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` within a `VizWrapper` that passes data and dimensions to a reusable `viz` function, illustrating patterns for scaling complexity in real-world projects.

AI-generated description

This viz is a starter that demonstrates patterns used in real world projects in which complexity is anticipated to scale.

  • Decoupled React & D3 integration
  • Opening moves for scalable complexity
  • Industry standard ES modules and JSX
  • Copy-paste into existing projects

Any questions? Ask on Twitter!

Also viewable in:

Comments

Sign in to join the discussion.

MIT Licensed