Skip to main content
100%

Circles

✓ Published9🌍 Public
Bbepnye@gmail.com
Last edited May 6, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example demonstrates how multiple HTML input elements can control SVG circle properties in D3.js v6. It shows three interactive patterns: a number input that changes a circle’s radius, a dropdown menu that transitions a circle’s fill color via `selection.transition()`, and a range slider that resizes four circles simultaneously. The code uses `d3.select` to bind event listeners and `join` to populate options. The SVG is rendered directly in the DOM, with visual feedback updating in real time.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes