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/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.
Versions 26 and later
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
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.
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
nSérie est un entier = 1
rTempérature est un tableau de 24*60 réels
 
POUR i = 1 À 24*60 // 24h * 60 mn
d est une Durée
d.Minute = i
GRF_CapteurTempérature.AjouteDonnéeTemporelle(nSérie, d, rTempérature[i])
FIN
 
GRF_CapteurTempérature.Dessine()
// Dessin sinusoïde
POUR i = 1 À 360
d est une Durée
d.Minute = i
GRF_Sinus.AjouteDonnéeTemporelle(1, d, 2 + Sinus(i))
FIN
 
GRF_Sinus.Dessine()
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. For more details, see Real-time chart.
Business / UI classification: Neutral code
Component: wd260grf.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment