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>
- Péter Grósz asked 2 years ago
-
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.
-
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.
-
Hi Peter, Thank you for the details. We are going to investigate this issue on our side.
-
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.
-
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!
- 2 more comments
- You must login to post comments
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
- Lex answered 2 years ago
- You must login to post comments
Please login first to submit.