Skip to main content
Public

Share visualization

Loading preview…

Test

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

Test

0 stars0Public
CCurran Kelleher
Last edited Nov 20, 2026
Created on Nov 20, 2026

Five circles plot data points loaded from a CSV file, with click interactions that highlight the selected circle by turning it white with a black outline. The React app uses a custom `useContainerDimensions` hook with a `ResizeObserver` to track container size, and D3's `scaleLinear` and `selectAll().join()` to render the circles.

AI-generated description

React D3 Starter

A minimal React + D3 starter for building interactive data visualizations.

Files

  • index.html — page shell and import map (React + D3 from a CDN).
  • index.jsx — mounts the <App /> component.
  • App.jsx — loads data.csv and renders the visualization.
  • viz.js — D3 render entry point.
  • renderCircles.js — draws the circles.
  • useContainerDimensions.js — tracks the container size.
  • data.csv — sample data.
  • styles.css — page styles.

Getting started

Edit App.jsx to change what gets rendered; the preview updates live as you type.

Comments

Sign in to join the discussion.