GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

05An Axis That Re-Picks 1-2-5 Ticks and Shrinks Along With the Bars

It divides the max by TICK_TARGET_COUNT, normalizes that rough step by a power of ten and rounds up to the nearest of NICE_STEPS (1, 2, 5); when the axis max changes, old ticks fade and new ones arrive over RESCALE_MS while bar heights interpolate with the same scale.

Best forA visitor chart whose values climb live

TICK_TARGET_COUNTNICE_STEPSRESCALE_MS
An Axis That Re-Picks 1-2-5 Ticks and Shrinks Along With the Bars
Open in a new tab

05 An Axis That Re-Picks 1-2-5 Ticks and Shrinks Along With the Bars — Measured area 35.748% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Bar Chart Animation: 9 Demos From Spring to Race

The post this demo lives in

Bar Chart Animation: 9 Demos From Spring to Race - preview of all 9 demosBar Chart Animation: 9 Demos From Spring to RaceWhen bars jump straight to new values, the eye misses what grew. So 01 grows bars on a spring that overshoots once, 02 s See all demos in this post

If you like this effect - similar demos