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

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 05:35 AM UTC

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 22, 2010 12:05 AM UTC

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 10:48 AM UTC

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.

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

;