ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Taking the orientation into account
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
Modifies the orientation of chart axes.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Example
// Reverses the X-axis and the Y-axis
// Chart created through programming
grOrientation("MyChart", grYCoordinate, grAtLeft, grAtBottom)
// Reverses the X-axis and the Y-axis
// Chart control
grOrientation(CHART_MyChart, grYCoordinate, grAtLeft, grAtBottom)
Syntax
grOrientation(<Chart name> [, <First axis> [, <Orientation of horizontal axis> [, <Orientation of vertical axis>]]])
<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.
<First axis>: Optional constant
Type of coordinates to display on the horizontal axis:
grXCoordinate
(default value)
X-coordinates are displayed on the horizontal axis.
grYCoordinateY-coordinates are displayed on the vertical axis.
<Orientation of horizontal axis>: Optional constant
Orientation of the horizontal axis:
grAtLeftThe horizontal axis is oriented to the left (the negative values are on the right and the positive values are on the left).
grAtRight
(default value)
The horizontal axis is oriented to the right (the negative values are on the left and the positive values are on the right).
<Orientation of vertical axis>: Optional constant
Orientation of vertical axis:
grAtBottomThe vertical axis is oriented to the bottom (the negative values are at the top and positive values are at the bottom).
grAtTop
(default value)
The vertical axis is oriented to the top (the negative values are at the bottom and positive values are at the top).
Remarks

Taking the orientation into account

The change of orientation is taken into account during the next call to grDraw.
Component: wd290grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help