canvas-gauges icon indicating copy to clipboard operation
canvas-gauges copied to clipboard

Gauge shows value of longer animated value, after shorter animation

Open mainstreetmark opened this issue 8 years ago • 5 comments

Here's a fiddle for you.

https://jsfiddle.net/m6x9L2mk/4/

I update the Gauge on that screen so it animates up to 15, over the course of 10 seconds.

1 second into the animation, I animate it to 60, over 2 seconds. The needle swings up to 60 in 2 seconds, and jumps to 15.

mainstreetmark avatar May 03 '17 21:05 mainstreetmark

Oh, and I had to add id="canvas-id" to the to make your zero-conf gauge examples work.

mainstreetmark avatar May 03 '17 22:05 mainstreetmark

This seems to be related to my previous bug #94.

mainstreetmark avatar Jun 22 '17 14:06 mainstreetmark

https://jsfiddle.net/m6x9L2mk/5/

I fixed the behavior by manually deleting gauge._value before setting the new one.

mainstreetmark avatar Jun 22 '17 18:06 mainstreetmark

I need to investigate this first... but have a lack of time for the moment...

Mikhus avatar Jun 26 '17 14:06 Mikhus

Thanks @mainstreetmark it solve my problem too.

ptorrent avatar Oct 05 '18 19:10 ptorrent