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.
Syncfusion Feedback

How to customize the timescale label format?

Description:

This article describes how to customize the Timescale label format.

 

Solution:

This requirement can be achieved by setting the corresponding label format property in timescale tier. Each interval type having separate label format property.

For example, if the IntervalType is Weeks, then need to set the label format in the WeeksLabelFormat property.

Gantt supports framework supported formats and some inbuild formats.

Inbuilt format strings

IntervalType

Format string

Output

Years

MMM dd, ’yy

Jan 01,’10

Quarter

Quarter

1st Quarter, 2nd Quarter, …

Q

Q1, Q2, …

Q’yy

Q1’10, Q2’10, …

Months

MMM:1

J, F, M…

Weeks

ddd MMM dd,’yy

Sun Jan 01,’10, …

ddd MMMM dd,’yy

Sun January 01, ’10, …

Days

ddd:1

S, M, T,

ddd:2

Su, Mo, Tu,

 

The following code sample illustrates the usage of WeeksLabelFormat property usage

[XAML]

 

The following screenshot is the output of the above code.

C:\Users\vignesh.ramesh\AppData\Local\Microsoft\Windows\INetCache\Content.Word\LabelFormat.png

 

Please find the required sample from the link.

Article ID: Published Date: Last Revised Date: Platform: Control:
7750 06/06/2017 06/06/2017 UWP SfGantt
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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