PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV, WEBDEV and WINDEV Mobile 27 feature!
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
grHolePercentage (Function)
In french: grPourcentageTrou
Modifies the percentage that corresponds the hole radius in the following charts:
  • Donut.
  • Versions 27 and later
    WINDEV Radial Bar chart.
    New in version 27
    WINDEV Radial Bar chart.
    WINDEV Radial Bar chart.
Versions 15 and later
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
New in version 15
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Example
// The hole will represent 50% of the total radius of the donut
grHolePercentage(CHART_MyChart, 50)
Syntax
grHolePercentage(<Chart name> , <Percentage>)
<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).
Android Only Chart controls are available.
PHP Only the interactive Chart controls are available.
<Percentage>: Integer
Percentage represented by the hole of the donut (between 0 and 70).
Remarks
The settings defined with grHolePercentage will be taken into account next time grDraw is called.
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: wd270grf.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment