Pre loader

Error in Stacked Column Chart when one data series has no data

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

1
0

Current, I am working an WPF application which using SciChart to draw many charts including a Stacked column chart.
In my case, there are many StackedColumnRenderableSeries in a chart, one of them has less data points then others do and this chart will be rendered incorrectly in a strange way, espcially when I zoomed in and panned it.
You can get source code for my example project from attached files.

Have anybody ever got this issue before?

What is the best way to resolve it?

Thank you for your support!

The last data series has 1 data point
The last data series has no data point
The last data series has no data point (after zooming)

Images
  • You must to post comments
1
0

Hi there,

Thanks for your request. Concerning the stacked series, they must have the same XValues and the same number of data points. So if you want to have an empty series, you could:

  • hide it, setting IsVisible to False on a corresponding StackedColumnRenderableSeries

  • have double.NaNs as Y values for every XValue in a DataSeries. This is a special value reserved in SciChart to specify that you want to skip a point.

Please let us know if this helps!

Best Regards,
Yuriy

  • You must to post comments
Showing 1 result
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