Skip to main content
100%

61. D3 Ease Elastic

✓ Published0🌍 Public
Aamakanju@nyit.edu
Last edited Feb 26, 2026
Created on Feb 23, 2026

This example demonstrates the elastic easing animation effect in D3.js version 4.5.0. A bar chart displays a dataset of 20 numeric values, rendered as SVG rectangles with color intensity proportional to the data values. When the user clicks on the text prompt, the chart transitions with new data over a 2-second duration, using `d3.easeElasticOut` to create a spring-like bouncing motion as the bars and their white text labels adjust to their new heights and positions. The visualization uses `d3.scaleBand` and `d3.scaleLinear` for positioning and scaling.

AI-generated description
MIT Licensed

Similar vizzes