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.

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 React & D3 Starter

0
IIndhuKrishnaraj
Last edited Mar 9, 2023
Created on Mar 9, 2023
Forked from React & D3 Starter

This example shows a scatterplot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with semi-transparent circles for each observation. It demonstrates a pattern for integrating React and D3.js, where React manages the component lifecycle and DOM rendering via JSX, while D3 handles scales, axes, and the data join. The visualization uses `d3.scaleLinear` for both axes, `d3.extent` to compute domains, and `d3.axisLeft` and `d3.axisBottom` to draw the axes. The code is structured as a starter template, separating data loading, viz logic, and React wrappers for scalable complexity.

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