Skip to main content
Public

Share visualization

Loading preview…

Fork of Pseudo Scatter Plot with Clickable Circles

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 Pseudo Scatter Plot with Clickable Circles

0
BBismark Kofi Owusu Sarfo
Last edited Sep 24, 2025
Created on Sep 24, 2025

Six circles, each with a fixed position and a radius of 35, appear across the screen and react to mouse clicks. Clicking a circle changes its fill to white, adds a thick black outline, and brings it to the front, while all other circles revert to a plain black fill. Built with D3 v7, the example uses the `join` API to create and manage the SVG circles, with a unidirectional data flow (`udf.js`) that maintains the selected circle’s ID in state. The interaction is set up via a custom `setupClickInteraction` function that assigns a `click` event listener to each circle.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed