Hi ,
I am assigning a datasource to the ultrachart which includes column AvailDate (Date Time) , AdjustedQty,Qty and Source .
I want to map Source on Y axis and Avail Date on X axis .Currently AdjustedQty,Qty are on x axis and Source is on Y axis.
How can i inculde AvailDate on X axis.
I tried using NumericSeried , but its not working :
NumericSeries series = new NumericSeries(); series.Data.DataSource = _AvailGrid.DataSource; series.Data.LabelColumn = "Source"; series.Data.ValueColumn = "AvailDate"; series.DataBind(); avialHistoryChart.Series.Add(series); avialHistoryChart.DataMember = "Source"; avialHistoryChart.Data.DataBind();
Am i doing something wrong here ....can somebody pls suggest the work around for this.
thanks,
ashish
You should use Source column as ValueColumn and AvailDate as LabelColumn. It appears that you have them switched. The numeric values appear on the Y axis, which is referenced by the ValueColumn. The X axis shows labels, which in your case are dates, so that will be the LabelColumn.
Hi,Thanks for the reply.
I used NumericTimeSeries and it worked .....but datetime was coming on y axis.
My requirement was for showing date time on x axis with column chart. I converted the date time to string and managed to show on the graph...but wondering is there any better way of representing .....i mean if i am using infragistics chart i shouldnt have needed to do the manipulation of data.
Is there any sample application where i can learn the stuff with chart?