PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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,
  • Versions 24 and later
    a Pyramid chart.
    New in version 24
    a Pyramid chart.
    a Pyramid chart.
Versions 21 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 21
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Example
// Performs a slight rotation of 35 degrees
// to highlight the raised effect
// on a Surface chart
CHART_Surface.Rotation(grAxis, -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,
  • Versions 24 and later
    a Pyramid chart.
    New in version 24
    a Pyramid chart.
    a Pyramid chart.
<Axis>: Integer constant
Rotation axis:
grAxisXRotation on the X axis.
grAxisYRotation on the Y axis.
Versions 18 and later
grAxisZ
New in version 18
grAxisZ
grAxisZ
Rotation 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,
  • Versions 24 and later
    a Pyramid chart.
    New in version 24
    a Pyramid chart.
    a Pyramid chart.
<Axis>: Integer constant
Rotation axis:
grAxisXRotation on the X axis.
grAxisYRotation on the Y axis.
Versions 18 and later
grAxisZ
New in version 18
grAxisZ
grAxisZ
Rotation on the Z axis.
Related Examples:
WD Chart Training (WINDEV): WD Chart
[ + ] This educational example present different uses of the chart control.
The following charts are presented:
- Semi-circular
- Donut
- Pie
- Sunburst
- Line
- Scatter
- 3D Scatter
- Column
- Area
- Bubble
- Radar
- Funnel
- Surface
- Waterfall
- Composite

The main features presented in this example are the ability to customize the charts by programming as well as the method used to fill a chart from a HFSQL file or in the editor.
Component : wd240grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment