Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart management functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Retrieves a numeric value from a Sunburst chart.
MyVal is real = grSunburstGetData(CHART_Chart1, "Europe" + TAB + "France" + TAB + "Montpellier")
<Result> = grSunburstGetData(<Chart name> , <Section path>)
<Result>: Real
  • Value to retrieve.
  • 0 if the path is invalid or if the section contains no data.
<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.
WEBDEV - Server codePHP In pages, only "Interactive chart" controls are available for Sunburst charts.
<Section path>: Character string
Full path of the section whose value must be retrieved. This parameter has the following format:
"<Name of base level>" + TAB + ["<Name of 1st level>" + TAB + ...
["<Name of last level>" + TAB + [...]]]"<Section name>"
  • To retrieve data from a Stock chart, it is recommended to use grStockGetData.
  • To retrieve data from a Surface chart, it is recommended to use grSurfaceGetData.
  • To retrieve data from another type of chart (Pie, Column, Line, etc.), we recommend that you use grGetData.
  • To retrieve data from a Heatmap chart, it is recommended to use grHMGetData.
  • By default, a chart created by grCreate contains no data.
Related Examples:
WD Chart Training (WINDEV): WD Chart
[ + ] This example presents the different uses of the Chart control.
Different types of charts are presented:
- Pie
- Sunburst
- Line
- Scatter
- Column
- Area
- etc.

The main features presented here are the possibility to customize of charts from the code, as well as to fill the chart from an HFSQL data file, or in the editor.
Business / UI classification: Neutral code
Component: wd280grf.dll
Minimum version required
  • Version 20
This page is also available for…
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help