Date Order Problem for two series in a WebChart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
gs
Newbie
Newbie
Posts: 84
Joined: Mon Mar 20, 2006 12:00 am
Location: US

Date Order Problem for two series in a WebChart

Post by gs » Tue Sep 25, 2007 8:30 pm

Hi,

I am displaying two different series in a Area type of WebChart in .Net Webforms. On the X-axis I am displaying Date and on Y-axis I am displaying Quantity. The two series shows the Quantity values in the Graph. The problem is that for many cases the dates are not displayed in ascending order or the order it is read from the excel file. Sometimes, it comes in random order & sometimes ascending order. I need the Chart to display data always on the ascending order of date. Although the data is stored in ascending order, I am not able to understand the erratic display of dates.

Please let me know if you have an idea.

Thanks
Gagan

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Sep 26, 2007 7:40 am

Hi Gagan,

You can try setting series's XValues being sorted in ascending order before populating them, for example:

Code: Select all

         WebChart1.Chart[0].XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply