ecGraph Demo13. Time series graph, with axis values
as "hh:mm"

Time series graph.

Showing axes formatted as time using "hh:mm".

The VB code used to generate the above graph...

PublicSub Demo13(ecGraph1 As ecGraph) 'Time series graph'In VB, [Date and Time] is stored as an 8-byte
number (like Double). The integer'portion is the date, and the fraction portion is
the time as a fraction of 24 hours.'Midnight is 0 and midday is 0.5; For dates, 0 is 30
Dec 1899.'One hour is
t=1/24. One minute is t=1/24/60.'So t=5/24=0.2083333 is 5:00AM, and
t=5/24+14/24/60=0.2180555 is 5:14AM. Dim
i, t0 AsDouble, t1 AsDouble, t AsDouble Dim y1 AsDouble, y2 AsDouble, y3 AsDoubleWith ecGraph1
Call .Reset
'Always call "Reset" first to clear the
page

t0 = 9 / 24
'9:00AM t1
= 10 / 24 '10:00AM'Force the x-axis
to show 9AM to 10AM with 6 steps of 10 minutes'Show the x-axis
labels as Hours:Minutes:Seconds, so that when zooming'in you get the
seconds display.'When ScaleStyle<>3 and TextLabels$<>"",
the format string will be used.'You could also
use "mm:ss" for minutes and seconds onlyCall
.AxisScaleStyle(t0, t1, 6, 5, 1, "h:mm")
'could also use "hh:mm:ss"