ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves a data from a chart.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
New in version 2025
Android This feature is now available for Android applications from version 2025 Update 1.
Example
// Affichage d'une donnée dans le champ "GRF_MonGraphe". 
// Cette donnée est la première de la première série.
Info(grGetData(GRF_MonGraphe, 1, 1))
Syntax
<Result> = grGetData(<Chart name> , <Series number> , <Index>)
<Result>: Real
Retrieved 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 the Chart control (in the window, page or report editor).
PHP Only interactive Chart controls are available.
<Series number>: Integer
Number of the series for which a value will be retrieved.
If the specified series does not exist, the retrieved value is 0.
<Index>: Integer
Index of data in the series for which the value will be retrieved.
If the data corresponding to the specified index does not exist in the series, the retrieved value is 0.
Remarks
  • To retrieve data from a Stock chart, it is recommended to use grStockGetData.
  • To retrieve data from a Scatter chart, it is recommended to use grScatterGetDataXY.
  • To retrieve data from a Surface chart, it is recommended to use grSurfaceGetData.
  • To retrieve data from a Heatmap chart, it is recommended to use grHMGetData.
  • By default, a chart created by grCreate contains no data.
Component: wd300grf.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help