Fork of Circles
✓ Published1🌍 Public
Seven colored circles of varying sizes and positions render as an SVG. The visualization uses D3 v5’s `select`, `selectAll`, and `join` to bind an array of circle objects, setting each circle’s `cx`, `cy`, `r`, `fill`, and a uniform opacity via `.attr`. Clicking any circle triggers an `alert` displaying the circle’s `name`, if defined, using a D3 event listener.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed