Pre loader

FastLineRenderableSeries sometimes not updating when data is appended.

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

Closed
0
0

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.

Version
v6.2.1.13304
Images
  • Andrew Burnett-Thompson
    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?
  • Andrew Burnett-Thompson
    Another option for you is try the latest nightly build 6.2.2. Does it work?
  • Rodney Thomson
    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 to post comments
Showing 0 results

Try SciChart Today

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

Start TrialCase Studies