PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Versions 26 and later
IOS Widget This function is now available in iOS widget mode.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 26
IOS Widget This function is now available in iOS widget mode.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
IOS Widget This function is now available in iOS widget mode.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
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
grAddTimeData(CHART_TemperatureSensor, nSeries, d, rTemperature[i])
END
grDraw(CHART_TemperatureSensor)
// Sinusoidal drawing
FOR i = 1 TO 360
d is Duration
d.Minute = i
grAddTimeData(CHART_Sine, 1, d, 2 + Sin(i))
END
 
grDraw(CHART_Sine)
Syntax
grAddTimeData(<Chart control> , <Series number> , <Time> , <Value>)
<Chart control>: Control name
Name of the Chart control to be used.
<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 with the new value.
Remarks
This function allows you to add data to charts that use a time scale and also to real-time charts. For more details, see Real-time chart.
Business / UI classification: Neutral code
Component: wd270grf.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment