Skip to main content
Public

Share visualization

Loading preview…

Fork of My first visualization

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

Viewing a saved revision (read-only)

GDpg9xqaUzfPDzbnOTd9K

Fork of My first visualization

0 stars0Public
ععباس فاضل
Last edited Nov 16, 2026
Created on Nov 16, 2026

This example shows five circles arranged across a scatterplot layout, where clicking a circle toggles its fill from black to white with a black stroke to indicate selection. The visualization loads x and y coordinates from a local CSV file, scales them to the container’s dimensions using d3.scaleLinear, and renders the circles with D3’s selection and join methods. React manages the component state, including the selected circle ID, while a ResizeObserver tracks the container’s size to update the SVG’s width and height dynamically.

AI-generated description