SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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.