We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use connection lines in the Gantt Chart?

Platform: ASP.NET Web Forms (Classic) |
Control: Chart


A Gantt chart is a graphical representation of the duration of tasks against the progression of time. This chart is excellent for planning the use of resources, and data can be plotted using a date-time scale or a numerical scale.

We have the direct support to connect the Gantt chart points using the property "RelatedPoints" and various customizing options are also available. Here is the sample code to do this.


//Indicates the connection lines between the points

int[] ptIndices1 = new int[] { 1 };

this.ChartWebControl1.Series[1].Styles[5].RelatedPoints.Points = ptIndices1;

//Customizing options for the lines.

this.ChartWebControl1.Series[1].Styles[5].RelatedPoints.Color = Color.Red;

this.ChartWebControl1.Series[1].Styles[5].RelatedPoints.Alignment = System.Drawing.Drawing2D.PenAlignment.Center;

this.ChartWebControl1.Series[1].Styles[5].RelatedPoints.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;

this.ChartWebControl1.Series[1].Styles[5].RelatedPoints.Width = 2f;

Below is the sample link demonstrating the connection lines in Gantt chart

Gantt Chart with Connection lines

You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile