Hi Tim,
Thanks for contacting Syncfusion support.
As of now the features which are all available in Javascript Gantt chart cannot be achieved with the Gantt chart in windows forms. In windows forms Gantt chart, to the data source(points) you need to pass three arguments viz (x, start and end). These start and end values can be in double or in date time. If it is in date time, then you need to specify the value type of the axis to DateTime. Since by default the axis will render in double. We have prepared a simple sample for depicting this behavior. Find the code snippet below to achieve this requirement.
ChartSeries series = new ChartSeries("series1", ChartSeriesType.Gantt);
for (int i = 0; i < dTable.Rows.Count; i++)
{
series.Points.Add(i, Convert.ToDateTime(dTable.Rows[i]["StartDate"]), Convert.ToDateTime(dTable.Rows[i]["EndDate"]));
}
this.chart.Series.Add(series);
this.chart.PrimaryXAxis.ValueType = ChartValueType.DateTime; |
Regards,
Mohanraj G