Skip to main content
Public

Share visualization

Loading preview…

Assignment 5

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

Assignment 5

0 stars0Public
Rrifatfahmida00@gmail.com
Last edited Oct 1, 2026
Created on Oct 1, 2026

This example shows five circles positioned by x/y coordinates from a small CSV dataset, with black fill by default and white fill with a thick black stroke for the currently selected circle. The React app loads data via d3.csv, tracks selection state, and resizes the SVG through a ResizeObserver in a custom hook. Rendering uses D3 v7 selections with scaleLinear to map coordinates to container dimensions, and click handlers trigger the selection callback.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed