ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Taking the orientation into account
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Modifies the orientation of chart axes.
Example
// Reverses the X-axis and the Y-axis
// Chart created programmatically
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 name of the chart defined programmatically 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 toward the left - negative values are on the right, positive values are on the left.
grAtRight
(default value)
The horizontal axis is oriented toward the right - negative values are on the left, positive values are on the right.
<Orientation of vertical axis>: Optional constant
Orientation of vertical axis:
grAtBottomThe vertical axis is oriented toward the bottom - negative values are at the top, positive values are at the bottom.
grAtTop
(default value)
The vertical axis is oriented toward the top (the negative values are found at the bottom, the positive values are found at the top).
Remarks

Taking the orientation into account

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

Last update: 03/25/2025

Send a report | Local help