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

add arrows on gantt chart

Hi,
I'm evaluating your tool suite and i'm very impressed.
Wanted to ask: Is ti possible to add arrows to the gantt chart?
I want to create a chart where the various bars represent tasks with start and finish times, and they have dependencies (the tasks). I want to be able to draw arrows from a task (bar) to the tasks (bars) that depend on it.
Is there any way to achieve what i need?
Thanks!

6 Replies

RR Ron Rais June 18, 2009 09:48 AM UTC

Hi,
How can i get the location on screen of a chart element like bar of a gantt chart?

Thanks!


AD Administrator Syncfusion Team June 18, 2009 10:30 AM UTC

Hi,

Currently we do not provide support to 'Adding arrows to the Gantt Chart'. This has been confirmed as a Feature Request.We will implement this feature in our forthcoming new version releases or service pack releases.We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity.

We will get back to you once the feature is implemented.

Thank you for your interest in Syncfusion products.

Regards,
Sowmya.N


RR Ron Rais June 18, 2009 12:15 PM UTC

Hi,
Thanks for the quick reply.
Is it possible to retrieve location of a specific bar inside the chart, so I can attach an arrow to it using ChartAnnotationLabel ?


Thanks!


AD Administrator Syncfusion Team June 23, 2009 07:35 AM UTC

Hi Ron,

Thanks for your interest in Syncfusion Products.

Yes, it is possible to retrieve location of the specific bars.

To retrieve location of the specific bars, we could use the ValueToPoint API.

Code Snippet:

double offsetx = area.ValueToPoint(area.PrimaryAxis, 5);
double offsety = area.ValueToPoint(area.SecondaryAxis, 30);

The retirieved points could then be passed as ChartAnnotation Offset values
Please refer to the attached Sample given in the below link.

http://files.syncfusion.com/support//Chart.WPF/7.3.0.37/F82597/main.htm

We sincerely appologise you for the late reply.

Please let us know if you have further queries.

Regards,
Sowmya.N


RR Ron Rais June 23, 2009 12:07 PM UTC

Hi,
Thanks for the reply.
Your sample helped, but it's not exactly what I need.
I need to know the "physical" location of the bar on the screen (meaning the co-ordinates of the whole bar shape itself), in order to draw arrows that connect between different bars. I also require these arrows to be binded, so when the chart gets zoomed, the arrows are redrawn and still show connection between 2 bars.
I attached a drawing of what I need.

Thanks a lot!



gantt_chart_d2f2ae22.jpg


AD Administrator Syncfusion Team June 24, 2009 01:34 PM UTC

Hi,

We are putting togather a sample to illustrate setting up connecting lines and move the points with mouse drag. We will need one more day to put this togather.

Thanks for your patience.

Regards,
Praveen

Loader.
Live Chat Icon For mobile
Up arrow icon