Fork of MIAGE base
✓ Published0🌍 Public
This example demonstrates a draggable HTML div alongside an interactive SVG scene built with React and D3 v5. The SVG contains colored circles that animate on click and double-click events, and a separate rectangle that appends new colored rectangles as the mouse moves across the body. The React component tracks mouse position to render a circle, while D3 functions handle SVG manipulation and transitions. The page includes a draggable header, using CSS and JavaScript for the drag behavior, and displays a message element updated with D3 selectors.
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