PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • 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.
Remark: The <Chart>.Origin function allows only part of the graph to be viewed, reducing the values displayed on 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. For more details, see The charts.
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. For more details, see The charts.
Linux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
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
// Modification de la graduation de début et de fin sur l'axe vertical du champ Graphe "GRF_Graphe"
// La graduation ira de 500 à 1000
// Restauration des valeurs par défaut
 
// Initialisation de fenêtre
gnYMin est un entier
gnYmax est un entier
 
// Bouton de modification de la graduation
gnYMin = GRF_Graphe..AxeYMin
gnYmax = GRF_Graphe..AxeYMax
GRF_Graphe.Origine(500, 1000, grOrdonnée)
GRF_Graphe.Dessine()
 
// Bouton de restauration de la graduation
GRF_Graphe.Origine(gnYMin, gnYmax, grOrdonnée)
GRF_Graphe.Dessine()
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
The Property AxisXMax allows to know the maximum limit of the abscissas (X axis) of an control of type Graph. 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
The Property AxisXMin allows to know the minimal bound of the abscissas (X axis) of an control of type Graph. 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
The YAxisMax property is used to determine the upper bound of the Y-axis in 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
The YAxisMin property is used to determine the lower bound of the Y-axis in a Chart control.
Versions 18 and later
ZAxisMax
New in version 18
ZAxisMax
ZAxisMax
The Property AxisZMax allows to know the maximum limit of the altitudes (Z axis) of an control of type Graph (Surface graph).
Versions 18 and later
ZAxisMin
New in version 18
ZAxisMin
ZAxisMin
The Property AxisZMin allows to know the minimum bound of the altitudes (Z axis) of an control of type Graph (Surface graph).
Versions 20 and later
WINDEV Remark: <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 Remark: <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 Remark: <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: wd260grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment