How do I convert a DateTime axis to custom work weeks?

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!

3 Replies

SS Sujitha S Syncfusion Team 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


TB Tam Bui 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".


SS Sujitha S Syncfusion Team 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


Loader.
Up arrow icon