How to bind a datatable to gantt series?
Posted: Tue Jul 20, 2004 8:46 pm
I tried to use
this.lotChart.YValues.DataMember=datasource.Columns["LotTypeID"].ToString();
this.lotChart.LabelMember=datasource.Columns["LotName"].ToString();
this.lotChart.StartValues.DataMember=datasource.Columns["StartTime"].ToString();
this.lotChart.EndValues.DataMember=datasource.Columns["StopTime"].ToString();
to generate a Gantt Series. But it seems the X-Asix value is not correct. It only shows from the earliest StopTime. And bars have same Y value didn't show on the same high level.
What's the problem?
May I bind the datatable to a Gantt Series?
Thanks.
this.lotChart.YValues.DataMember=datasource.Columns["LotTypeID"].ToString();
this.lotChart.LabelMember=datasource.Columns["LotName"].ToString();
this.lotChart.StartValues.DataMember=datasource.Columns["StartTime"].ToString();
this.lotChart.EndValues.DataMember=datasource.Columns["StopTime"].ToString();
to generate a Gantt Series. But it seems the X-Asix value is not correct. It only shows from the earliest StopTime. And bars have same Y value didn't show on the same high level.
What's the problem?
May I bind the datatable to a Gantt Series?
Thanks.