Jump to content
Software FX Community

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


Software FX

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

Archived

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

×
×
  • Create New...