A newer version of this page is available. Switch to the current version.

ChartControlSettings.GanttDiagram(Action<GanttDiagram>) Method

Configures the chart diagram as a gantt diagram.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll


public void GanttDiagram(
    Action<GanttDiagram> diagramAction
Public Sub GanttDiagram(
    diagramAction As Action(Of GanttDiagram)


Name Type Description
diagramAction Action<GanttDiagram>

A delegate method configuring the GanttDiagram object.



We recommend using this method after series are specified, because when the first series is added to a chart, the diagram type is changed to be compatible with the series view type.


If a chart doesn't have a specified diagram, this method sets it, and if a chart already has a specified diagram of another type, this method throws an exception.

See Also