Pre loader

Comments for "Scatter chart flickering after gets focus"

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

  • Andrew Burnett-Thompson
    Hi Peter, this could be related to some virtualization issues of TabControl that we’re working on for another client. Is the sample above complete – meaning – can we reproduce it with just this? Or do we need more code.
  • Péter Grósz
    Thank you for your reply! I think it’s reproducible from this, the code above is in a TabControl’s TabItem and in the ViewModel I use XyScatterRenderableSeries for the chart. Meanwhile I figured out that the main problem is that the data (points) disappears from the chart for a few seconds after switching to the scatter chart, the flickering happens because the AutoRange property is “always”, with turning it off the axis values will not move, just the points will disappear for a bit, then reappear.
  • Péter Grósz
    Update: The disappearing what I mentioned in the previous comment is actually that all of the data points are “respawn” in the Y=0 and they slowly climb up/down until their real Y values, it happens in a few seconds.
  • Lex
    • Lex
    • 1 year ago
    • 1
    Hi Peter, Thank you for the details. We are going to investigate this issue on our side.
  • Péter Grósz
    Hi again, finally I found out the main reason: there was an unintended ScaleAnimation added to the series from code once which was there from a demo code. This animation was played after tab switching because as I know now it triggered the SciChartSurface.Loaded event, and with the AutoRange=”Always” option this caused the weird flickering while the data was animating to its real position. So, with the AutoRange turned off it works as should be I guess, maybe with AutoRange=”Always” it isn’t the expected behavior. Thank you for your help and sorry that I couldn’t recognize the main cause earlier.
  • Andrew Burnett-Thompson
    Hi Peter, that’s ok – I appreciate the effort you’re also putting in to diagnost it. Did you ‘resolve’ the problem or do you need further help?
  • Péter Grósz
    As I wouldn’t like to use the animation and the AutoRange together which caused the flickering, for me it is resolved, thank you again!