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
Pulls out a section (or all sections) in a chart. This function can be used on Pie charts, on Donut charts and on Semi-circular charts.
Example of pulled-out section in a chart:
Pulled-out section
Note Each part of the graph can be eccentric independently of the others.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
Example
// Décalage de la troisième part du graphe "GRF_MonGraphe" de 20 pixels
GRF_MonGraphe.SecteurPartExcentrée(3, 20)
Syntax

Eccentricity on one side Hide the details

<Chart control>.PiePullOut(<Section subscript> , <Offset>)
<Chart control>: Control name
Name of the Chart control to use (in the window, page or report editor).
PHP Only interactive Chart controls are available.
<Section subscript>: Integer
Index of section to pull out.
<Offset>: Integer
Offset of specified section (in pixels).

Eccentricity on all sides Hide the details

<Chart control>.PiePullOut(<Offset>)
<Chart control>: Control name
Name of the Chart control to use (in the window, page or report editor).
PHP Only interactive Chart controls are available.
<Offset>: Integer
Offset of different sections (in pixels).
Remarks
  • Pulling out a chart section has no effect on the charts other than the Pie charts, the Donut charts and the Semi-circular charts.
  • Any changes made with <Chart>.PiePullOut will take effect the next time <Chart>.Draw 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.
WM Click on Chart Cross-platform examples (WINDEV Mobile): WM Click on Chart
[ + ] The "WM Click on Chart" example proposes a solution for pulling out the sections of a Pie chart via a simple click.
This example includes a control template named "TPLC_PullOutChart". This control template is used to pull out the chart sections via a simple click.
To include this feature in another application, all you have to do is import the "TPLC_PullOutChart" template.
Component: wd300grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help