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

Gantt chart with multiple "label lines"

Thread ID:





115792 Feb 6,2014 01:44 PM UTC Feb 11,2014 02:32 AM UTC WinForms 1
Tags: Chart
Gerda Diteriha
Asked On February 6, 2014 01:44 PM UTC

I am creating Gantt chart and want to have quite bigger "header" than just a date.
Firstly I added week numbers instead of seperated dates.
How can I center them for a cell. Now they are right above vertical line.
Now I also want a Month name JUST ONCE ceneterd above all week numbers
Similarly I want the year above the month names, also cenetered are written only once
Is it possible to add label in multiple layers like this?


Anandaraj T [Syncfusion]
Replied On February 11, 2014 02:32 AM UTC

Hi Gerda Diteriha,

Thanks for using Syncfusion products.

We suggest you to use grouping labels for displaying axis labels in multiple lines.

Please refer the following code snippet to achieve this.
            //Grouping label for multiple layers
            ChartAxisGroupingLabel cagl = new ChartAxisGroupingLabel(new DoubleRange(dt.ToOADate(), dt.AddDays(3).ToOADate()), "Quarter1");                       

For your convenience, we have created a simple sample with grouping labels and it can be downloaded from the below link.

For more information about grouping labels, please refer our online documentation in the following link:
Grouping Labels

Please let us know if you have any concern.


Attachment: Gantt_Chart_a62c1826.zip


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