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://es.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.
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();
hello sir,
i need a sample code for Bar chart in vb.net
Dim dT As New Data.DataTable
dT.Columns.Add("Mearmiss", System.Type.GetType("System.Int32"))
dT.Columns.Add("Accident", System.Type.GetType("System.Int32"))
dT.Columns.Add("Fire", System.Type.GetType("System.Int32"))
dT.Rows.Add( "7", "6", "5")
dT.Rows.Add( "7", "5", "4")
the second and thrid column data only show in chart(Bar Chart)
pls help me to clear the issues
Thanks in advance!!!!!!!
Try using ultraChart.Data.ZeroAligned = True
You can also set a manual range on your numeric axis by setting RangeMin, RangeMax properties, then setting RangeType to "Custom".
The chart typically starts its numeric axis with the lowest value in your datasource. Although, your picture does not match the data that you have provided. The "Accident" column has values 5 and 6, but the image clearly shows the blue columns with the same value.