Pre loader

Animation issues when switching intervals

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Hi,
When switching intervals, we have an animation set for the price and volume charts. The animation time is 800ms. Unfortunately, when quickly switching between intervals, we encounter two bugs that occur randomly:

  • The line chart has an incorrect appearance – it contains data from a different interval: https://ibb.co/S44xqWPG.
  • The line chart disappears, and if intervals are switched for a longer period, the line chart disappears completely: https://ibb.co/8D12CcR2.

Here is the project that contains the animations and data on the chart that we use: https://codesandbox.io/p/sandbox/animation-v624lh. It seems that the animations are not being cleared, and the data remains in some buffer. According to the documentation, there doesn’t seem to be a way to stop and/or clear the animations. It should stop when visible = false changes.

Regards

Version
3.5.711
  • Jim Risen
    Hello. Yes, this might be the case. The series animations use the old animation API which is not that flexible as the new Generic Animation API. At thispoint, there are coupple of things I would recommend trying: set isCompleted=false on an animation; or a better one IMO – switch the RenderableSeries completely with a new instance instead of clearing data. Let us know if that helps.
  • Kamil Macura
    Hi, switch the RenderableSeries completely with a new instance – works. Thanks!
  • You must to post comments
0
0

We published an update recently that may also help with this. Can you try the new 3.5.721 with your previous method of just setting series visibility. If that works it is preferable as for the sake of easier memory management you don’t want to be creating new series instances if you can avoid it.

Regards
David

  • Kamil Macura
    Unfortunately, the latest version (3.5.721) continues to have this error.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.