Skip to main content
100%

Fork of practice_with_h

✓ Published0🌍 Public
GGabriel Ing
Last edited Jan 20, 2025
Created on Jan 20, 2025
Forked from practice_with_h

This example demonstrates a circular packing visualization that animates between two views of multi-group data, switching every two seconds between total counts and percentage responses. Circle radii and positions smoothly transition using D3's transition API with a 200-millisecond duration and linear easing, while group labels remain centered within each circle. The visualization is built with D3 v7, using the d3.pack layout algorithm to arrange nodes as non-overlapping circles, and SVG rendering with CSS hover effects. A JavaScript timer toggles the data metric, causing the packing to recalculate and animate the updated positions and sizes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes