Order of Grouped Column Chart

I am using a grouped column chart, where the x-axis is labeled with a DateTimeCategoryAxis and DateTimeIntervalType.months.

I provide two ColumnSeries to the chart:

Series one: 

- entry for April

- entry for May

Series two:

- entry for March

- entry for June


My expected behaviour would be the ordering: March - April - May - June

However, the actual odering is: April - May - March - June (all of first series, then all of second series)


If I now add a entry to series two for May, it gets properly grouped with group one, the new ordering is:

April - (May - May) - March - June


That means, the ordering is always: series one + all elements of series two that can get grouped, and only after all elements of series two that cannot be grouped

I would expect the chart to order everything based on DateTime, not based on series number first.

I could give screenshots to explain the problem better, but I cannnot upload images.


Thanks for the he



1 Reply

YG Yuvaraj Gajaraj Syncfusion Team March 21, 2022 04:15 PM UTC

Hi Simon, 
 
Greetings from Syncfusion. In the date-time category axis, the data are plotted based on the index i.e., will render in the order based on the data available in the data source. The date-time axis will plot the data linearly, so you can use the axis to achieve your requirement. 
 
 
Hope this helps. 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon