Axis Transition
✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 4, 2018
Created on Sep 4, 2018
A linear x-axis centered vertically in a full-screen SVG repeatedly updates its domain to a random value between 10 and 10,000 every second. Each update triggers a smooth transition of the axis tick positions using D3 v4’s `d3.interval` and the `.transition().call(x_axis)` pattern with `d3.axisBottom`. The example is built with the `d3-marcon` helper library for margin conventions and renders purely as a demonstration of animated scale-domain changes.
AI-generated descriptionWhen a scale's domain changes, transition the axis.
forked from <a href='http://bl.ocks.org/HarryStevens/'>HarryStevens</a>'s block: <a href='http://bl.ocks.org/HarryStevens/678935d06d4601c25cb141bacd4068ce'>Axis Transition</a>
gpl-3.0 Licensed