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

X-Axis Date Custom Format problem

Thread ID:

Created:

Updated:

Platform:

Replies:

75742 Aug 7,2008 02:47 PM UTC Aug 8,2008 07:36 PM UTC Windows Forms 2
loading
Tags: Chart
Robert Avery
Asked On August 7, 2008 02:47 PM UTC

I'm trying to display the X-Axis with a date format of "MMM-YY" such that it looks like:
Jun-08
Feb-10
Dec-12

But I haven't been able to figure out either how to specify a .NET custom formatter or other method to accomplish this. Any ideas? Thanks.


Manohari [Syncfusion]
Replied On August 8, 2008 05:18 AM UTC

Hi Robert,

It is possible to set the DateTimeFormat to X-Axis using the chartControl1.PrimaryXAxis.DateTimeFormat property. Please refer to the same code below.

Sample code:

this.chartControl1.PrimaryXAxis.ValueType = ChartValueType.DateTime;
this.chartControl1.PrimaryXAxis.DateTimeFormat = "MMM:yy";

Also I have attached the sample that illustrates the same in this link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F75742/Main.htm

Kindly let us know if this meets your requirements. Thanks for your patience.

Regards,
Manohari.R


Robert Avery
Replied On August 8, 2008 07:36 PM UTC

After I got the latest version of your product, this worked.

Thank you.


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

;