Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
519
Want to display date on X axis ......numeric series not working
posted

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
Parents
  • 26458
    Offline posted

    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.

Reply Children