User (Legacy) Posted October 20, 2003 Report Share Posted October 20, 2003 Is there a way to generate a fixed interval DateTime axis? I have data where the date time inteval can vary slightly (seconds) at the moment the X-Axis labels appear at irregular intervals. What I would like to happen is that the X axis is generated for me based on the datetime of the first data item and last data item, with a definable interval for major ticks, seconds, minutes, hours etc. Also the image created in the designer doesn't match what I get at runtime. At run time I get a label showing every 4 or 5 major ticks, in the designer I get a label for each major tick. Any help would be much appreciated. Link to comment Share on other sites More sharing options...
Software FX Posted October 20, 2003 Report Share Posted October 20, 2003 If the X-Axis is a numerical axis (X-Values are supplied to the chart and the gallery selected supports X-Values) you can control the Min and Max as well as the step. The Step will be constant along the whole axis. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 26, 2003 Author Report Share Posted October 26, 2003 does this answer my question? If so, I really don't understand it. Can you explain further? "SoftwareFX Support" <support@softwarefx.com> wrote in message news:kW1WDU0lDHA.1152@WEBSERVER1... > If the X-Axis is a numerical axis (X-Values are supplied to the chart and > the gallery selected supports X-Values) you can control the Min and Max as > well as the step. The Step will be constant along the whole axis. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 27, 2003 Author Report Share Posted October 27, 2003 You can set the step property of the axis to dsipaly grid lines in 'nicely' sized intervals, eg 1 minute, 15 minutes 1 hour etc. Remember the value of the points is the OleAutomation floating point / decimal format whereby days are whole numbers and hours, minutes, seconds are the frasctional part for the number. For example .step = (15.0 * 60.0) / (24.0 * 60.0 * 60.0) to set the step to 15 minute intervals You might also want to round the axis min value down to a nicely rounded value (to the nearest hour etc), and similarly with the axis maximum. "Robin Bass" <robin.bass@tevron-europe.com> wrote in message news:l1RsMT$mDHA.1244@WEBSERVER1... > does this answer my question? If so, I really don't understand it. Can you > explain further? > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:kW1WDU0lDHA.1152@WEBSERVER1... > > If the X-Axis is a numerical axis (X-Values are supplied to the chart and > > the gallery selected supports X-Values) you can control the Min and Max as > > well as the step. The Step will be constant along the whole axis. > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.