I have the following SciChart surface in my program:
<s:SciChartSurface
Name="Chart"
Margin="0,0,4,0"
Padding="0"
BorderThickness="0"
GridLinesPanelStyle="{StaticResource SciChartBackgroundStyle}">
<s:SciChartSurface.RenderableSeries>
<s:FastLineRenderableSeries
x:Name="LevelSeries"
DataSeries="{Binding Series}"
ResamplingMode="None"
Stroke="{StaticResource LabelColor}"
StrokeThickness="1" />
</s:SciChartSurface.RenderableSeries>
</s:SciChartSurface.RenderableSeries>
<!-- Axis and modifiers snipped for readability -->
</s:SciChartSurface>
In my ViewModel I have a public XyDataSeries<DateTime, short> Series property. We do custom decimation on zoom, so when the chart is zoomed, the Series is cleared and repopulated with Series.Append in chunks.
My issue is that some of the time, the final .Append does not trigger a redraw. The data is in the series, the mouse rollover works and I can “see” the data, but it isn’t drawn.
Forcing the redraw using ViewportManager.InvalidateElement(); works but i would obviously prefer to not have to do that.
I would estimate that this issue happens ~1/5 times.
I’ve attached a gif showing the issue.
- Rodney Thomson asked 4 years ago
- last edited 4 years ago
-
Hi Rodney, by all intents and purposes this should not happen. Data updates should be drawn, no matter what. The only exception is when the chart is suspended (SciChartSurface.SuspendUpdates). Can you provide some code to reproduce this bug so we can investigate it?
-
Another option for you is try the latest nightly build 6.2.2. Does it work?
-
Hi Andrew. We aren’t doing any SuspendUpdates so no dice there. Unfortunately I can’t provide much more of our code, and can’t really spend time creating a reproducable example while I’m on the clock. I suspect it may have something to do with appending to the series on another thread while the chart is still updating or similar. We have a work-around so no big deal. If there are no other leads, feel free to close this question. I was just hoping it may have been something you’ve seen before.
- You must login to post comments