Jump to content
Software FX Community

Setting date format for Quarters


Recommended Posts

Works for me. Make sure you are using the latest Service Pack.

If the problem persist please post the code to reproduce it, I tried with a couple of different settings and worked as designed, I could indeed replace the Q by something else and I will see it when the labels were displayed by quarter.

Link to comment
Share on other sites

I see.  Q{q} can only be used in the <quarter format> section.  I cannot use this to force the axis to display dates as quarters by trying something like this:

mChart.AxisX.LabelsFormat.CustomFormat = "Q{q};Q{q};Q{q};Q{q};yyyy";

Is there another approach I can take to force the x-axis date format to display as quarters all the time?


Link to comment
Share on other sites


If you want to force the Step to be quarters do:

chart.axisX.Step = 90;

Note that this is not the same as changing the format, changing the format merely changes the way labels are displayed it does not change which labels and where they are displayed.

The Step property (default is <auto>) determines at which dates to display the labels.

Link to comment
Share on other sites

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...