Page 1 of 1

Date Order Problem for two series in a WebChart

Posted: Tue Sep 25, 2007 8:30 pm
by 9640703
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

Posted: Wed Sep 26, 2007 7:40 am
by narcis
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;