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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to put a text label on each segement of a gantt chart

Thread ID:





114500 Nov 21,2013 04:49 PM UTC Jan 22,2014 11:18 AM UTC WPF 3
Tags: Chart
Jared Stokes
Asked On November 21, 2013 04:49 PM UTC

I want to add a text label to each of the segments in my gantt chart.  Is there a way to do this?  I've included a picture of what I'm trying to accomplish.



Muneesh Kumar G [Syncfusion]
Replied On November 22, 2013 05:08 AM UTC

Hi Jared,

Thanks for using Syncfusion products.

We can achieve your requirements by setting Annotations as per the below code snippet.

Code Snippet[XAML]:





<chart:ChartSeriesAnnotation x:Name="serAnnot1"

X="0" Y="35"

Description="Stage 1"

Template="{StaticResource LabelTemplate}"




<chart:ChartSeriesAnnotation x:Name="serAnnot2"

X="1" Y="50"

Description="Stage 2"

Template="{StaticResource LabelTemplate}"









We have prepared a sample based on this and you can find the sample under the following location:

Sample : http://www.syncfusion.com/downloads/support/directtrac/general/GanttChart-982778748.zip

Please let us know if you have any queries.


Muneesh Kumar G.

Jared Stokes
Replied On January 21, 2014 03:28 PM UTC

Is there any way to do this in the code behind?  As it is unknown where/how many chart segments will exist until run time.

Karthikeyan V [Syncfusion]
Replied On January 22, 2014 11:18 AM UTC

Hi Jared,

Thanks for the update.

We have analysed the reported requirement and we have prepared a sample based on this. Please find the sample under the following location.

Please let us know if you have any query.


Karthikeyan V.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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