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: <Chart>.Origin is used to view a chart section by reducing the values displayed on the one of the axes.
Versions 15 and later
Linux This function is now available for 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
Linux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Linux This function is now available for 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 WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
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 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.
Example
// 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
CHART_Chart.Origin(500, 1000, grYCoordinate)
CHART_Chart.Draw()
 
// Button for restoring the mark
CHART_Chart.Origin(gnYMin, gnYMax, grYCoordinate)
CHART_Chart.Draw()
Syntax
<Chart name>.grOrigin_object(<Minimum mark> [, <Maximum mark> [, <Type of axis>]])
<Chart name>: Control name
Name of the Chart control to use (found in the window editor, page editor or report editor).
<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).
Universal 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 data values in the series displayed.
  • Y axis (vertical axis): <Minimum mark> and <Maximum mark> correspond to the minimum and maximum data values.
  • 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 <Chart>.Graduate.
  • The data defined by <Chart>.Origin will be taken into account during the next call to <Chart>.Draw.

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
WINDEV Note: <Chart>.Zoom 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
WINDEV Note: <Chart>.Zoom 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").
WINDEV Note: <Chart>.Zoom 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
Component : wd240grf.dll
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment