Author |
Topic  |
|
fsjodin
26 Posts |
Posted - 01 Oct 2007 : 13:56:47
|
Hi.
When I have a plot with Date/Time Axis labels and do not specify any information for the Tick marks the plot automatically adjusts the ticks and labels based on the amount of time displayed on the X axis.
For example, if the plot is showing 10 days worth of data, the major tick marks are displayed for each day. If I zoom in to less than two days, the hours start appering on the minor ticks etc.
This behavior is great. Is there a way to keep this behavior but just override the date and time formatting? In other words to keep the dynamic and automatic behavior but for example to be able to say, 'If a date is displayed then use this date format "yyyy-MM-dd". If a time is displayed then show "HH:mm:SS"' etc.
Also, is there a way to be able to say "If the date range displayed is between 'n' and 'n+x' time then use this Date/Time Axis Tick Mark constant and if it is between 'n+x+1' and 'n+y' then use this Date/Time Axis Tick Mark constant' etc.? I understand this can be implemented in code but I wanted to check if there is a built-in mechanism for doing this.
Thanks
|
|
quinncurtis
1164 Posts |
Posted - 01 Oct 2007 : 17:05:53
|
There is no automatic way of changing the default date/time labeling, other than shifting to the European (Day/Month/Year) standard, from our default US (Month/Day/Year) formating of date labels. See the TimeAxisLabels.EuroAutoFormatMonthDay property.
You could probably implement the changes you want if you work the source code of the QCChart2D library.
Otherwise you will have to explictly choose the format of the date/time labeling that you want, using one of our pre-defined formats, or using your own custom format, based on the axis range.
|
 |
|
fsjodin
26 Posts |
Posted - 02 Oct 2007 : 18:35:56
|
I am able to set a custom date format by looking at the current date range. For example if less than 7 days, use "yyyy-MM-dd".
However when I set the CustomTimeFormatString property to a time component only (e.g. "HH:mm"), the dates that are displayed underneath the time label at midnight are also displayed only as "HH:MM".
For example, if I don't set the CustomTimeFormatString property, the tick mark at '2007-09-22 00:00' is displayed as
0:00:00 9/22/2007
However if I set the CustomTimeFormatString property to "HH:mm" the tick mark is displayed as 00:00 00:00
I would like for it to show: 00:00 2007-09-22
How do I set the custom date time format to use for the date that is displayed under the tickmark at midnight hours?
|
 |
|
quinncurtis
1164 Posts |
Posted - 03 Oct 2007 : 10:45:06
|
That appears to be a bug. When a custom time/date string format is used for the time axis labels, the crossover date reverts to the same custom string format, when it should use the one set using the TimeAxisLabels.CrossoverLabelFormat property. We will fix it and it will appear in the software with an end of the month update. |
 |
|
fsjodin
26 Posts |
Posted - 03 Oct 2007 : 19:02:47
|
Would it be possible for you to add a CustomCrossOverLabelTimeFormatString property so that it would be possible to have a uniform implementation of a custom date string?
Right now it looks like the CrossoverLabelFormat property only accepts one of the predefined constants which would mean I can have a custom date string of "yyyy-MM-dd" for the custom date string but not have that date format appear for the crossover date labels (since there is no constant defined for yyyy-MM-dd).
Thanks |
 |
|
quinncurtis
1164 Posts |
Posted - 04 Oct 2007 : 09:13:58
|
We will consider your request and add it to the list of new features to add. Since we do not consider it a bug fix its inclusion is not certain. To be a standard feature it would have to added to every version of the software for every compiler. If you wish to us to add this feature under contract contact our special services department at sales@quinn-curtis.com, or consider purchasing the source code so that you can add features like these on your own. |
 |
|
|
Topic  |
|