i have tried to use a Datatable for the DataSource property of HorizBox but this did not work.
Example:
Code: Select all
Steema.TeeChart.Styles.HorizBox ser = new Steema.TeeChart.Styles.HorizBox();
DataTable dt = new DataTable();
dt.Columns.Add("test");
dt.Rows.Add("1");
dt.Rows.Add("1");
dt.Rows.Add("2");
dt.Rows.Add("2");
dt.Rows.Add("3");
ser.DataSource = dt;
ser.XValues.DataMember = "test"; // this do not work
//ser.Add(new double[] { 1, 1, 2, 2, 3 }); // this work
ser.ReconstructFromData();
tChart1.Series.Add(ser);
Bye!