Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Drawing One Circle

Public visualization

More options

Embed on a websiteCopy iframe embed code

The embed preserves the visualization's visibility and project dataset permissions.

Download & exportHTML, source ZIP and authorized project data

Source ZIP contains editable visualization files; it does not include project datasets. Standalone HTML is available where authorized and packages readable referenced data for offline use. Dataset ZIP requires project read permission.

Standalone HTMLSource ZIP
Publishing & handoffCopy a client maintenance summary

Includes the canonical link, visibility, and available export formats. Confirm dataset attribution, licensing and maintenance responsibilities with the publisher.

Drawing One Circle

0 stars0🌍 Public
CCurran Kelleher
Last edited May 12, 2024
Created on May 12, 2024

This example renders a single circle centered within an SVG element created by D3’s selection join pattern. The program uses `d3.select` and the `join` method to manage both the SVG and circle, setting the circle’s `cx` and `cy` attributes to the container’s measured width and height. Its primary purpose is demonstrating an immutable update structure, as described in the README, where state changes follow Redux-style patterns. The visualization does not respond to mouse events; it shows a static, fixed-radius circle.

AI-generated description

A program that follows the mouse around and changes its color using immutable update patterns.

Challenge

  • Use this pattern to make something else respond to mouse events

Comments

Sign in to join the discussion.

MIT Licensed