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 do I convert a DateTime axis to custom work weeks?

Thread ID:

Created:

Updated:

Platform:

Replies:

95056 Jun 17,2010 07:42 PM Jun 22,2010 06:48 AM WPF 3
loading
Tags: Chart
Tam Bui
Asked On June 17, 2010 07:42 PM

Is there a way for me to convert a chart's axis label to indicate a custom format for the time range? If so, what's the best way to do this?

Instead of seeing this along the bottom axis:

|---1/1/10---1/7/10---1/14/10---|

I want it to display something like this (and don't get caught up on the calculation conversion, I already know how to do that part. I just want to know what's needed from a Syncfusion perspective):

|---Week 1---Week 2---Week 3---|

Thanks for any help!

Sujitha S [Syncfusion]
Replied On June 21, 2010 01:35 AM

Hi Tam,

Thanks for choosing Syncfusion product.

I have created a simple sample based on your requirement.

Your requirement can be achieved using CustomLabels.

Please find the sample from the attachment.

Let me know, If you have any queries.

Regards
Sujitha S



CustomLabels_33c32612.zip

Tam Bui
Replied On June 21, 2010 08:05 PM

Thanks. I was able to get the chart to display the desired formate by following your instructions for adding to the CustomLabel collection, and setting LabelsMode="Custom".

Sujitha S [Syncfusion]
Replied On June 22, 2010 06:48 AM

Hi Tam,

Thanks for your update. I am glad to hear that your problem has been resolved. Please do not hesitate to open a new support forum if you ever need further assistance from us.

Thanks for choosing Syncfusion Products.

Regards,
Sujitha S


CONFIRMATION

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.

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

;