PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
Retrieves a data from a stock chart (candlestick, barcharts or minmax).
The chart used can be:
  • a chart created by programming (grCreate). By default, a chart created by grCreate contains no data,
  • a Chart control (created in the window editor, page editor or report editor).
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
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 the PHP sites.
New in version 23
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Example
// Display a data in the "CHART_MyChart" control.
// This data is the first minimum value of the first series.
Info(grStockGetData(CHART_MyChart, 1, 1, grMinValue))
Syntax
<Result> = grStockGetData(<Chart Name> , <Series Number> , <Subscript> , <Value to Retrieve>)
<Result>: Real
Retrieved value.
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by 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 for which a value will be retrieved.
If the specified series does not exist, the retrieved value is 0.
<Subscript>: Integer
Subscript of data in the series for which the value will be retrieved.
If the data corresponding to the specified subscript does not exist in the series, the retrieved value is 0.
<Value to Retrieve>: Integer constant
Indicates the value to retrieve:
grStartValueStart value.
grEndValueEnd value.
grMaxValueMaximum value.
grMinValueMinimum value.
Remarks
  • To retrieve data from a Scatter chart, we recommend that you use grScatterGetDataXY.
  • To retrieve data from a Sunburst chart, we recommend that you use grSunburstGetData.
  • To retrieve data from a Surface chart, we recommend that you use grSurfaceGetData.
  • Versions 21 and later
    To retrieve data from a Heatmap chart, we recommend that you use grHMGetData.
    New in version 21
    To retrieve data from a Heatmap chart, we recommend that you use grHMGetData.
    To retrieve data from a Heatmap chart, we recommend that you use grHMGetData.
  • To retrieve data from another type of chart (Pie, Column, Line, etc.), we recommend that you use grGetData.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
Linux wd230grf.so
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment