Jump to content
Software FX Community

Custom Date format label not being shown


Recommended Posts

Hello, I'm creating a new report where it will show in AxisX months (month and year) and AxisY currency values.

The query throws me this information:

Fecha Saldo

01/04/2010 138

01/05/2010 164

So basically what I do in chartFX is set the format I want to show to the user and display the information but I'm having problems with the second month (the label is not being shown).

This is the code Im using for the AxisX (I believe I'm missing something)

//AxisX format

ChartFX.WinForms.AxisX x = this.chart1.AxisX;

x.DataFormat.Format = ChartFX.WinForms.AxisFormat.Date;

x.Step = 30;

x.DataFormat.CustomFormat = "MM" + Application.CurrentCulture.DateTimeFormat.DateSeparator + "yyyy";

x.Style = ChartFX.WinForms.AxisStyles.AutoScale;

x.LabelsFormat.CustomFormat = x.DataFormat.CustomFormat;

x.LabelAngle = 90;

x.Visible = true;

I'm also using Data.Compact but I believe this is not required since the information I am sending is already compacted?

Any ideas are appreciated


Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...