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
105
Data overlaps X axis in StackLineChart
posted

 HI. HAVE AN ISSUE WITH STACKLINECHART..

 

MY DATA IS OF THIS FORMAT

 

DEC  JAN  FEB

112   333   111

222   333   111

 

 

ON THE X AXIS THE DATA OVERLAPS AND AM NOT GETTING A LINE AT ALL

DO I HAVE TO USE A COMPOSITE CHART OR IS A SIMPLE ONE SUFFICIENT?

CAN U PLEASE SUGGEST ASAP

...??? IT WOULD BE NICE IF I HAVE THE CODE

Parents
No Data
Reply
  • 10880
    posted

    I did the following and it seems to work fine.

    DataTable dt = new DataTable();
    dt.Columns.Add("Dec", typeof(int));
    dt.Columns.Add("Jan", typeof(int));
    dt.Columns.Add("Feb", typeof(int));

    dt.Rows.Add(112, 333, 111);
    dt.Rows.Add(222, 333, 111);

    this.ultraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.StackLineChart;
    this.ultraChart1.Data.DataSource = dt;

     What is the problem you are seeing?

Children
No Data