X-Axis Date Custom Format problem

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.


2 Replies

MA Manohari Syncfusion Team 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



RA Robert Avery August 8, 2008 07:36 PM UTC

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

Thank you.


Loader.
Up arrow icon