Pre loader

if series has different amount of 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

Answered Closed
-1
0

why show incorrectly

Version
6.1
Images
  • You must to post comments
Best Answer
0
1

Are you using CategoryDateTimeAxis?

If yes, then all series must have the same number of points as this axis type measures by index, not date value.

You can ensure series have the same number of points by inserting null or empty points with X=value and Y=double.NaN

Please see our example here which shows how to do this:

WPF Candlestick Chart and Moving Averages

The example uses the CategoryDateTimeAxis which collapses overnight and weekend gaps in data, but, uses the Index to the data to calculate X-position. This means that all DataSeries must have the same number of data-points (you can pad DataSeries using double.NaN for null or empty points).

Best regards
Andrew

  • You must to post comments
Showing 1 result

Try SciChart Today

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

Start TrialCase Studies