Then perhaps it's my data. I build my datatable on the fly. Two columns, first is System.String, second is System.Decimal. Then I add 5 rows...
System.Data.DataTable dt = new DataTable();
System.Data.DataColumn col = new DataColumn("one",typeof(System.String));
System.Data.DataColumn col2 = new DataColumn("two",typeof(System.Decimal));
dt.Columns.Add(col);
dt.Columns.Add(col2);
System.Data.DataRow row1 = dt.NewRow();
System.Data.DataRow row2 = dt.NewRow();
System.Data.DataRow row3 = dt.NewRow();
System.Data.DataRow row4 = dt.NewRow();
System.Data.DataRow row5 = dt.NewRow();
System.Data.DataRow row6 = dt.NewRow();
System.Data.DataRow row7 = dt.NewRow();
System.Data.DataRow row8 = dt.NewRow();
row1[0] = "First";
row2[0] = "Second";
row3[0] = "Third";
row4[0] = "Fourth";
row5[0] = "Fifth";
row6[0] = "Sixth";
row7[0] = "Seventh";
row8[0] = "Eighth";
row1[1] = 20;
row2[1] = 50;
row3[1] = 30;
row4[1] = 80;
row5[1] = 54;
row6[1] = 63;
row7[1] = 77;
row8[1] = 16;
dt.Rows.Add(row1);
dt.Rows.Add(row2);
dt.Rows.Add(row3);
dt.Rows.Add(row4);
dt.Rows.Add(row5);
dt.Rows.Add(row6);
dt.Rows.Add(row7);
dt.Rows.Add(row8);
colChart.Data.DataSource = dt;
colChart.Data.DataBind();
colChart.Data.IncludeColumn(0,false);
colChart.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.CylinderBarChart3D;
The data coming in is not is a table form and I have to create the datatable in this manner. Is there something else that I can do differently?