ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
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
grDonutHolePercentage (Function)
In french: grDonutPourcentageTrou
Warning
From version 27, this function is kept for compatibility (this function will still be supported in the next version). It is recommended to use the grPercentageHole.
Modifies the percentage corresponding to the radius of the hole in a Donut chart.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Example
// Le trou représentera 50% du rayon total du donut/beignet
grHolePercentage(GRF_MonGraphe, 50)
Syntax
grDonutHolePercentage(<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).
<Percentage>: Integer
Percentage represented by the hole of the donut (between 0 and 70).
Remarks
  • The settings defined with grDonutHolePercentage will be taken into account next time grDraw is called.
  • This function can be used with the Donut charts only.
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 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help