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
25
Ultra Web Chart.
posted

 Hi All,

    Am trying to create a stacked column chart, i dont know how can i create this chart using infragistics chart control. i tried this url(https://ko.infragistics.com/samples/aspnet/chart/stacked-area-chart ), in this am not able to find the data source, so that am not able to find any solution for creating the stacked column chart. please somebody help me, provide a sample application there i can give dynamic data source.

 

Thanks in advance.....

 

Devashis.

Parents
No Data
Reply
  • 26458
    Offline posted

    Here's an example of creating a stack column chart from a table:

    DataTable dt = new DataTable();
    dt.Columns.Add(
    "column1", typeof(double));
    dt.Columns.Add(
    "column2", typeof(double));
    dt.Columns.Add(
    "column3", typeof(double));
    dt.Rows.Add(
    new object[ {10, 5, 20 });
    dt.Rows.Add(
    new object[ {50, 10, 5 });
    dt.Rows.Add(
    new object[ {60, 30, 55 });
    dt.Rows.Add(
    new object[ {65, 30, 20 });
    ultraChart1.ChartType =
    ChartType.StackColumnChart;
    ultraChart1.Data.DataSource = dt;
    ultraChart1.Data.DataBind();

Children