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
Used to:
  • Turn a chart around one of its axes in order to better view the data.
  • Find out the rotation angle of a chart on one of its axes.
The chart used can be:
  • a Surface chart,
  • a Pyramid chart.
Example
// Effectue une légère rotation de 35 degrés
// pour mettre en évidence l'effet de relief
// sur un graphe de type Surface
GRF_Surface.Rotation(grAxeX, -35)
Syntax

Rotating a chart Hide the details

<Chart control>.Rotation(<Axis> , <Angle>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor or in the report editor). This chart can be:
  • a Surface chart,
  • a Pyramid chart.
<Axis>: Integer constant
Rotation axis:
grAxisXRotation on the X axis.
grAxisYRotation on the Y axis.
grAxisZRotation on the Z axis.
<Angle>: Real
Rotation angle in degrees.

Finding out the rotation angle of a chart Hide the details

<Result> = <Chart control>.Rotation(<Axis>)
<Result>: Real
Rotation angle in degrees.
<Chart control>: Control name
Name of the Chart control to use (found in the window editor or in the report editor). This chart can be:
  • a Surface chart,
  • a Pyramid chart.
<Axis>: Integer constant
Rotation axis:
grAxisXRotation on the X axis.
grAxisYRotation on the Y axis.
grAxisZRotation on the Z axis.
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.
Component: wd290grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help