Skip to main content
100%

Fork of Circles 5/6

✓ Published0🌍 Public
Cchris.shimotake@gmail.com
Last edited May 6, 2024
Created on May 6, 2024
Forked from Circles

This example demonstrates a single D3.js interface that controls three independent visualizations: a numeric input resizes a circle, a dropdown changes a second circle’s fill color via transition, and a range slider adjusts the radius of four circles rendered in an SVG. Built with D3 v6, the code uses `d3.select` to target HTML elements and SVG containers, appending circles with `.attr` and applying smooth color changes via `.transition().duration()`. The dropdown options are generated using `.join('option')`, while the slider updates circle radii through an `.on('change')` event listener.

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