PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Marks on axes
  • Types of charts
  • Restoring the default values
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
Modifies the start and end marks on one of the chart axes.
Note: grOrigin is used to view a chart section by reducing the values displayed on the one of the axes.
Versions 15 and later
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
New in version 15
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for the Android applications.
New in version 19
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
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
PHP This function is now available for the PHP sites.
New in version 23
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Example
// Modify the start and end marks on the horizontal axis
// of "MyChart". The mark will go from 5 to 12.
grOrigin("MyChart", 5, 12, grXCoordinate)
grDraw("MyChart")
// Modify the start and end marks on the vertical axis of "CHART_Chart" control
// The mark will go from 500 to 1000
// Restore the default values

// Initialize the window
gnYMin is int
gnYMax is int

// Button for modifying the mark
gnYMin = CHART_Chart..YAxisMin
gnYMax = CHART_Chart..YAxisMax
grOrigin(CHART_Chart, 500, 1000, grYCoordinate)
grDraw(CHART_Chart)

// Button for restoring the mark
grOrigin(CHART_Chart, gnYMin, gnYMax, grYCoordinate)
grDraw(CHART_Chart)
Syntax
grOrigin(<Chart Name> , <Minimum Mark> [, <Maximum Mark> [, <Type of 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, page editor or report editor.
Android Only the Chart controls are available.
PHP Only the interactive 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.
<Type of Axis>: Optional constant
Axis for which the marks must be modified:
grXCoordinate
(default value)
X axis (horizontal axis).
Versions 18 and later
grZCoordinate
New in version 18
grZCoordinate
grZCoordinate
Z axis (Surface charts only).
AndroidUniversal Windows 10 App This constant is not available.
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 grOrigin 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 display of the chart before the origin was modified, the minimum and maximum values of axes must be saved. 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).
Versions 20 and later
WINDEVAndroidiPhone/iPad Note: grZoom can also be used to view a section of the chart. However, the final user can restore the initial configuration via the popup menu of the chart ("Initial zoom").
New in version 20
WINDEVAndroidiPhone/iPad Note: grZoom can also be used to view a section of the chart. However, the final user can restore the initial configuration via the popup menu of the chart ("Initial zoom").
WINDEVAndroidiPhone/iPad Note: grZoom can also be used to view a section of the chart. However, the final user can restore the initial configuration via the popup menu of the chart ("Initial zoom").
Related Examples:
The Chart functions Unit examples (WINDEV): The Chart functions
[ + ] Using the main chart designer features of WINDEV:
- Create a Pie, Column or Line chart
- Define the display area of a chart
- Define the chart options (legend, percentage, ...)
- Draw a line on a chart
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
Linux wd230grf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment