Pre loader

Stacked mountain series not rendering correctly (overlap + blank areas, changing when zoom/pan)

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

I just added a stacked mountain series to my chart and I’m getting some very odd rendering behavior. There’s lots of gaps and “misses” where it’s not adding or drawing the data correctly. Also, whenever the zoom or pan changes, everything jumps around, with the gaps and stacked series’s changing constantly (the lowest series is fine).

Here’s an example:

enter image description here

Notice the left graph, one part seems to be working, but then it starts overlapping. You can see examples of gaps on the right series.

If I pan a little to the right, it all jiggles around and I get this:

enter image description here

The overlap has now jumped up. The graph on the right has completely changed except for the first series (lowest).

I’ve not set any grouping, just added two stacked series to the ObservableCollection like this:

                RenderableSeriesViewModels.Add(new StackedMountainRenderableSeriesViewModel()
                {
                    DataSeries = dataSeries,
                    Stroke = color,
                    Fill = new SolidColorBrush(ColorHelper.MultiplyTransparency(0.5f, color)),
                    StrokeThickness = 2
                });

As a line series, everything works fine.

  • You must to post comments
1
0

Hi there,

Thanks for writing to us. I think I know the reason. You probably have different XValues in the series. However, StackedMountains series is designed to work only when XValues are the same for every series that is going to be stacked. You shouldn’t render series which have different XValues as StackedMountains.

Please let us know if my assumption is correct,

Best regards,
Yuriy

  • You must to post comments
0
0

Yes, that’s correct. The data is minute averaged, but it excludes “gaps” and sequential identical values, so each index on one series isn’t the same time-stamp as the other.

Thanks for the explanation.

  • You must to post comments
Showing 2 results
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