PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

New WINDEV, WINDEV Mobile 24 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds data in a time chart. A time chart is a chart in which the unit of the X-axis is time (date, time, duration).
This time scale can be used, for example, to represent a change in a measurement (temperature sensor for example) over a day.
Example
nSeries is int = 1
rTemperature is array of 24*60 real
 
 
FOR i = 1 TO 24*60 // 24h * 60 mn
d is Duration
d..Minute = i
CHART_TemperatureSensor.AddTimeData(nSeries, d, rTemperature[i])
END
 
CHART_TemperatureSensor.Draw()
 
// Sinusoidal drawing
FOR i = 1 TO 360
d is Duration
d..Minute = i
CHART_Sin.AddTimeData(1, d, 2 + Sin(i))
END
 
CHART_Sin.Draw()
 
Syntax
<Chart control>.AddTimeData(<Series number> , <Time> , <Value>)
<Chart control>: Control name
Name of Chart control to use.
<Series number>: Integer
Number of the series into which a value will be added. If the specified series does not exist, the chart designer creates as many series as necessary in order to get a consistent matrix. All the created series are initialized to 0.
<Time>: Duration or DateTime or Date or Time
Position in time for which the value will be added.
<Value>: Integer or real
Value to add.
If a value is already present for a position in time, this value will be replaced by the new value.
Remarks
This function allows you to add data to charts that use a time scale and also to real-time charts. See Real-time chart for more details.
Component : wd240grf.dll
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment