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.
Unfortunately, activation email could not send to your email. Please try again.

How to use connection lines in the Gantt 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.

C#

//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

Article ID: Published Date: Last Revised Date: Platform: Control:
138 04/30/2011 07/10/2014 ASP.NET Web Forms (Classic) Chart
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.