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.

X-Axis Date Custom Format problem

Thread ID:





75742 Aug 7,2008 10:47 AM Aug 8,2008 03:36 PM Windows Forms 2
Tags: Chart
Robert Avery
Asked On August 7, 2008 10:47 AM

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

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 01:18 AM

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.


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


Robert Avery
Replied On August 8, 2008 03:36 PM

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

Thank you.


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.

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.