Animation numsteps wrong value
See original GitHub issueExpected Behavior
The numsteps should be the duration of that animation and not the global one
Current Behavior
the short tooltip animation works but the onProgress
callback in the animation block for the options reports back the main long duration.
V2 (correct behaviour): https://www.chartjs.org/samples/latest/advanced/progress-bar.html V3 (wrong behaviour): https://www.chartjs.org/samples/master/advanced/progress-bar.html
Context
Found this through another issue
Environment
- Chart.js version: 3.0.0-beta.13 master
- Browser name and version: Chrome Versie 88.0.4324.190 (Officiële build) (64-bits)
- Link to your project:
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Animation numsteps wrong value · Issue #8613 · chartjs/Chart.js
Expected Behavior. The numsteps should be the duration of that animation and not the global one. Current Behavior.
Read more >Animations | Chart.js
Disabling animation. To disable an animation configuration, the animation node must be set to false , with the exception for animation modes ...
Read more >Chart.js - How to show loading animation before plotting chart
I want to display loading before plotting chart. I have tried following but nothing is happening. Here it is showing jQuery error: Uncaught...
Read more >animation - CSS: Cascading Style Sheets - MDN Web Docs
Determines whether the animation is playing or not. The value must be one of those available in animation-play-state .
Read more >Animations – amCharts 4 Documentation
This will automatically enable all animations in all the places that matter. Here's a basic chart with Animated theme enabled: HTML; CSS; JS....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good question as to what the most correct behaviour is here. For example, what happens if the tooltip is configured such that the duration of the position change is 400ms, but the background color changes in 800ms. That’s essentially the case that I am seeing happen while debugging this sample. I see 15 different animations, 7 of which are active. Durations range from 2000ms to 200ms.
true
'borderColor'
'rgb(255, 99, 132)'
'#FF4069'
true
'backgroundColor'
'rgb(255, 99, 132)'
'#FF4069'
true
'radius'
3
4
false
'borderWidth'
1
1
true
'borderColor'
'rgb(54, 162, 235)'
#059BFF'
true
'backgroundColor'
'rgb(54, 162, 235)'
'#059BFF'
true
'radius'
3
4
false
'borderWidth'
1
1
false
'caretY'
348.107
348.107
false
'caretX'
40.76
false
'height'
56
56
false
'width'
168
168
false
'x'
320.107
320.107
false
'y'
47.76
47.76
true
'opacity'
0
1
I think there is actually some other issue here, the duration might be wrong on those 2000ms animations when hovered.