Jump to content
Software FX Community

Re: Real-time chart with time values on X-axis


Software FX
 Share

Recommended Posts

Several observations: 

1) A RealTime chart CAN NOT have X values.

2) A Time format is a representation of a floating point number. Setting the

X-Axis format to Time and nothing else, will simply re-interpret the numbers

that will normally show (1,2,3....) as time. This of course won't be real

time labels.

You have to let Chart FX know the value of each of those labels, are they

hours ? minutes ? Here is a VB example on how you can set the chart to go

from 12:00 am at intervals of 10 minutes.

This sample is for a NON X-Y chart. If you require an X/Y chart, you can not

use any of the real-time flags such as COD_ADDPOINTS.

ChartFX1.Axis(AXIS_X).Min = CDate("12:00am")

ChartFX1.Axis(AXIS_X).LabelValue = CDate("00:10")

ChartFX1.Axis(AXIS_X).Step = 1

--

Frank

SFX

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.

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

 Share

×
×
  • Create New...