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

Answered Closed
-1
0

why show incorrectly

Version
6.1
Images
  • Andrew Burnett-Thompson
    Please when asking questions share a code sample of how you set up the chart.
  • 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