Hi Alexandre,
Thanks for using Syncfusion products.
As you are using Category axis, x values are not
corresponding to y values for all the series. However your requirement can be
achieved either by adding separate axis (LineSeries.XAxis) to the series in
order to display the corresponding axis labels or by using NumericalAxis
instead of CategoryAxis where we can display string values by using custom
labels.
Custom label KB Link: http://www.syncfusion.com/kb/2588/how-to-define-custom-x-axis-ticker-labels
We have modified the sample based on your requirement,
please download it from the attachment.
Also we would like to clarify the behavior of CategoryAxis,
especially with your scenario. CategoryAxis is a string type axis, in which the
axis labels are based on first series (Series[0]) if we have same itemsource
for all the series. And if we have different itemsource for each series, the
axis labels will be based on the series with maximum number of data points (to
cover all the datapoints of other series).
In both the cases, axis labels will corresponds to only one
series (either first series or the series with maximum data count). The
remaining series values will plot data points on its datapoint index.
UG link for Category Axis: http://help.syncfusion.com/ug/wpf/documents/categoryaxis.htm
Please let us know if you require further assistance on
this.
Regards,
Suresh S
Hi Alexandre,
Thanks for your response.
We have analyzed your query and achieved your requirement by
using multiple panes feature. Using this, we can arrange the chart series based
on its axis either in column or row wise, please refer the below code snippet.
We have prepared a sample based on your requirement, please find the sample
attachment with this update.
Code Snippet:
[C#]
SfChart.SetColumn(xAxis,1);
[XAML]
<chart:LineSeries.XAxis>
<chart:CategoryAxis chart:SfChart.Column="1"/>
</chart:LineSeries.XAxis>
SideBySideSeriesPlacement feature is different scenario. For
more information about the features, please refer our online help documentation
from below link.
http://help.syncfusion.com/ug/wpf/documents/area.htm
Please let us know if you require further assistance on
this.
Regards,
Suresh S