We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Does a multiple series chart group (move) data points to common?closest? x coordinates?

Thread ID:

Created:

Updated:

Platform:

Replies:

127811 Dec 9,2016 02:59 PM Dec 13,2016 07:51 AM WPF 2
loading
Tags: SfChart
Alan L
Asked On December 9, 2016 02:59 PM

I've been wrestling with what I'm seeing in multiple series charts.  It seems like the first series defines the x axis coordinates to be used in plotting all subsequent series.
Trying many chart formats, they all seem to behave the same.

In the chart below you can see only the 1st Series time was used as x axis coordinates.
1st Series(blue)          2nd Series(brown)
12:00:00, 1000            12:00:00, 1000.0
12:00:04, 999.93         12:00:01, 999.65
12:00:08, 1000.44       12:00:02, 999.36
12:00:11, 1000.43       12:00:03, 999.45
12:00:14, 999.97         12:00:08, 998.89
12:00:17, 999.77         12:00:11, 998.89
12:00:20, 999.94         12:00:16, 999.77
12:00:24, 1000.60       12:00:17, 1000.18
12:00:29, 1001.03       12:00:21, 999.43
12:00:31, 1001.12       12:00:22, 999.63



This may be connected to a separate thread where a SfDateTimeRangeNavigator does not seem to align axis with the underlying chart.

Alan L
Replied On December 12, 2016 09:49 AM

Would using CategoryAxis be the root of my problem?
It seems like switching the primary axis to NumericalAxis is behaving as expected.

Sheik Syed Abthaheer M [Syncfusion]
Replied On December 13, 2016 07:51 AM

Hi Alan, 
  
Thanks for your update. 
  
We would like to inform you that, CategoryAxis is an index based axis and so the scaling of axis depends on datapoint index. That is, the first point of each series will be plotted on first value (index) of x axis.  So the x-axis labels are generated from the series with maximum datapoint (segment) count, to include all the series’s datapoints into the plot area. 
  
As you mentioned, by using the LinearAxis such as NumericalAxis, DateTimeAxis, the reported problem can be resolved. 
  
Regards, 
Devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;