Jump to content
Software FX Community

Setting date format for Quarters


rcabrera

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

Right.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...