Pre loader

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

0
0

Hi,

I have an analog and scatter chart on separate tabs and when I change for the tab with the scatter chart, after a bit the chart starts to flicker with the data on the chart and the axes values moving quickly up and down and in a few seconds, it’ll become still and won’t move anymore until I change tabs again. It looks like if it would like to scale the Y axis values really quickly, but it’s the same before and after the flickering, which is totally correct, so there is no need to do anything like this. It happens both if I put data to the series dynamically and if there is no data update also. What can cause this behavior?

This is my chart in the XAML:

<s:SciChartSurface x:Name="ScatterChart"
   ClipToBounds="True"
   RenderableSeries="{Binding ScatterRenderSeries}" 
   Margin="10,0" >

<s:SciChartSurface.ChartModifier>
    <s:ModifierGroup>
        <s:XAxisDragModifier DragMode="Scale"/>
        <s:YAxisDragModifier AxisId="LeftAxis" DragMode="Scale"/>
        <s:YAxisDragModifier AxisId="RightAxis" DragMode="Scale"/>
        <sciChart6Controls:NotifyingMouseWheelZoomModifier IsEnabled="true" ReceiveHandledEvents="True"/>
        <s:MouseWheelZoomModifier IsEnabled="True" ActionType="Zoom" XyDirection="XYDirection"/>
        <s:RubberBandXyZoomModifier/>
        <s:ZoomPanModifier IsEnabled="True" ExecuteOn="MouseRightButton" ClipModeX="None" />
        <s:ZoomExtentsModifier ExecuteOn="MouseDoubleClick" />
        <s:RolloverModifier ShowTooltipOn="MouseOver"/>
        <s:LegendModifier Margin="10" ShowLegend="True" />
    </s:ModifierGroup>
</s:SciChartSurface.ChartModifier>

<s:SciChartSurface.XAxis>
    <s:NumericAxis x:Name="ScatterXAxis"
            AutoRange="Always" 
            GrowBy="0.1,0.1"
            AxisTitle=""
            DrawMajorBands="True"
            DrawMinorTicks="True" 
            DrawMinorGridLines="True"
            AutoTicks="True"
            AxisAlignment="Bottom"/>
</s:SciChartSurface.XAxis>

<s:SciChartSurface.YAxis>
    <s:NumericAxis x:Name="ScatterYAxis"
            Id="LeftAxis"
            AutoRange="Always"
            GrowBy="0.1,0.1"
            AxisTitle=""
            DrawMajorBands="True"
            DrawMajorGridLines="True"
            DrawMinorGridLines="True"
            AutoTicks="True" 
            TextFormatting="F2"
            ScientificNotation="Normalized"
            AxisAlignment="Left" />
</s:SciChartSurface.YAxis>

Version
SciChart 6
  • 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.
  • 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!
0
0

Hi Péter,

I am glad to inform you that we have added a few improvements to the latest SciChart version that can be related to the issue you described.
Could you please update your project to the SciChart v7.0.2 build 27161 which is currently the latest one and let us know if the flickering issue is fixed on your side?

Thanks in advance.

With best regards,
Lex
SciChart Technical Support Engineer

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies