PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Consistency of values
  • Adding data
  • Adding data into the different types of charts
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 into a stock chart (candlestick, barcharts or minmax).
Caution: A specific WLanguage function must be used for each type of chart (see "Remarks").
Versions 15 and later
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
New in version 15
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
PHP This function is now available for PHP sites.
New in version 23
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Example
// Graphe créé par programmation
grCreate("MonGraphe", grCandleStick)
...
// Ajout de données dans le graphe "MonGraphe"
grStockAddData("MonGraphe", 1, 5.4, 6.8, 6.1, 6.3)
// Champ Graphe
// Ajout de données dans le graphe "GRF_MonGraphe"
grStockAddData(GRF_MonGraphe, 1, 5.4, 6.8, 6.1, 6.3)
Syntax
grStockAddData(<Chart name> , <Series number> [, <Subscript>] , <Minimum value> , <Maximum value> , <First value> , <Last value>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the chart name defined through programming with grCreate.
  • the name of Chart control found in the window editor, page editor or report editor.
PHP Only the interactive Chart controls are available.
<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.
Caution: Only the first series will be drawn.
<Subscript>: Optional integer
Subscript of data in the series into which the values will be added. If this parameter:
  • is not specified: the values are added at the end of series.
  • is specified: the former value is replaced.
<Minimum value>: Integer or real
Minimum value for the day.
<Maximum value>: Integer or real
Maximum value for the day.
<First value>: Integer or real
First value for the day.
<Last value>: Integer or real
Last value for the day.
Remarks

Consistency of values

If the values are not consistent, the data will not be displayed in the chart:
  • <First value>, <Last value> and <Minimum value> must be less than <Maximum value>.
  • <First value>, <Last value> and <Maximum value> must be greater than <Minimum value>.

Adding data

  • The data added by grStockAddData will be taken into account during the next call to grDraw.
  • Only the first series will be drawn.
  • By default, a stock chart created by grCreate contains no data.

Adding data into the different types of charts

  • To add data into the standard charts (line, pie, ...), use grAddData.
  • For Scatter charts, it is recommended to use grScatterAddDataXY.
  • Versions 21 and later
    For HeatMap graphs, it is recommended to use the grHMAddData function.
    New in version 21
    For HeatMap graphs, it is recommended to use the grHMAddData function.
    For HeatMap graphs, it is recommended to use the grHMAddData function.
  • Versions 20 and later
    For Sunburst charts, it is recommended to use grSunburstAddData.
    New in version 20
    For Sunburst charts, it is recommended to use grSunburstAddData.
    For Sunburst charts, it is recommended to use grSunburstAddData.
  • Versions 18 and later
    For Surface charts, it is recommended to use grSurfaceAddData.
    New in version 18
    For Surface charts, it is recommended to use grSurfaceAddData.
    For Surface charts, it is recommended to use grSurfaceAddData.
  • To add a value to the data in a chart, use grIncreaseData.
Component: wd270grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment