PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE


  • Marks on axes
  • Types of charts
  • Restoring the default values
  • Managing the zoom
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
Defines the zoom of a chart.
Note: This function is equivalent to grOrigin. However, grZoom allows the user to restore the initial zoom of chart by using one of the following methods:
  • WINDEV via the popup menu of chart ("Initial zoom").
  • WINDEV via the CTRL + 0 keys.
  • AndroidiPhone/iPad via a double tap on the chart.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 23
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
grZoom(MyChart, 5, 12, grXCoordinate)
grDraw(MyChart)
Syntax
grZoom(<Chart Name> , <Minimum Mark> [, <Maximum Mark> [, <Axis>]])
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor.
Android Only the Chart controls are available.
<Minimum Mark>: Real
Start mark on the specified axis.
Versions 23 and later
This parameter can also correspond to a duration, a date, a time or a date-time.
New in version 23
This parameter can also correspond to a duration, a date, a time or a date-time.
This parameter can also correspond to a duration, a date, a time or a date-time.
<Maximum Mark>: Optional real
End mark on the specified axis.
If this parameter is not specified, <Maximum Mark> corresponds to the maximum value of chart data.
Versions 23 and later
This parameter can also correspond to a duration, a date, a time or a date-time.
New in version 23
This parameter can also correspond to a duration, a date, a time or a date-time.
This parameter can also correspond to a duration, a date, a time or a date-time.
<Axis>: Optional Integer constant
Axis for which the marks must be modified:
grXCoordinate
(default value)
X axis (horizontal axis).
grYCoordinateY axis (vertical axis).
grSecondaryYCoordinateSecondary Y axis (vertical axis).
Remarks

Marks on axes

  • X axis (horizontal axis): <Maximum Mark> and <Minimum Mark> correspond to the maximum and minimum values of the data found in the series displayed.
  • Y axis (vertical axis): <Minimum Scale> and <Maximum Scale> correspond to the minimum and maximum values of data.
  • Limits: 100 marks above and 100 marks below the X axis.
  • To modify the frequency of marks on the horizontal or vertical axis of a chart, use grGraduate.
  • The data defined by grZoom will be taken into account during the next call to grDraw.

Types of charts

The marks on axes have no effect on the Pie charts.

Restoring the default values

To restore the chart display before the zoom, the minimum and maximum values of axes must be used. These values can be known via the following properties:
Versions 14 and later
XAxisMax
New in version 14
XAxisMax
XAxisMax
..XAxisMax is used to find out the upper bound on the X axis for a Chart control. This property can be used in the zoom process of a chart to identify the section displayed.
Versions 14 and later
XAxisMin
New in version 14
XAxisMin
XAxisMin
..XAxisMin is used to find out the lower bound on the X axis for a Chart control. This property can be used in the zoom process of a chart to identify the section displayed.
Versions 14 and later
YAxisMax
New in version 14
YAxisMax
YAxisMax
..YAxisMax is used to find out the upper bound on the Y axis for a Chart control. This property can be used in the zoom process of a chart to identify the section displayed.
Versions 14 and later
YAxisMin
New in version 14
YAxisMin
YAxisMin
..YAxisMin is used to find out the lower bound on the Y axis for a Chart control. This property can be used in the zoom process of a chart to identify the section displayed.
Versions 18 and later
ZAxisMax
New in version 18
ZAxisMax
ZAxisMax
..ZAxisMax is used to find out the upper bound of altitudes (Z axis) for a Chart control (Surface chart).
Versions 18 and later
ZAxisMin
New in version 18
ZAxisMin
ZAxisMin
..ZAxisMin is used to find out the lower bound of altitudes (Z axis) for a Chart control (Surface chart).
For example:
// Code used to zoom
grZoom(CHART_MyChart, 5, 12, grXCoordinate)
grDraw(CHART_MyChart)
// Code used to zoom out
grZoom(CHART_MyChart, MyChart..XAxisMin, MyChart..XAxisMax, grXCoordinate)
grDraw(CHART_MyChart)
Versions 22 and later

Managing the zoom

grParameter is used to configure several options for zoom management in the Chart controls:
  • Managing scrollbars.
  • Managing the zoom out.
New in version 22

Managing the zoom

grParameter is used to configure several options for zoom management in the Chart controls:
  • Managing scrollbars.
  • Managing the zoom out.

Managing the zoom

grParameter is used to configure several options for zoom management in the Chart controls:
  • Managing scrollbars.
  • Managing the zoom out.
Components
WINDEVReports and Queries wd230grf.dll
WEBDEV - Browser code WDJS.DLL
Android wd230android.jar
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment