"Doug Richardson" wrote:
>Can someone show how to put a time interval on the xaxis of a chart?>I am
trying to use CWGraph1.ChartY data in VB.>>I can format the axis as time,
but it always shows 00:00:00>>
In VB the time format is a real number where each whole number represents
a day. Thus 0.0 is midnight and 0.5 is noon. Try the following code (format
the X axis as time):
Dim x(1 To 10)
Dim y(1 To 10)
For i = 1 To 10
timestring = "12:00:" + Str(i) + " AM"
x(i) = TimeValue(timestring)
y(i) = i
Next
CWGraph1.PlotXvsY x, y