|
|
|
|
|
- Marks on axes
- Types of charts
- Restoring the default values
- Managing the zoom
grZoom (Function) In french: grZoom
Not available
Defines the zoom of a chart. Note: This function is similar to grOrigin.. However, the grZoom function allows the user to return to the initial zoom of the graph using one of the following methods: via the context menu of the chart ("Initial zoom"). via the Ctrl + 0 keys.    via a double tap on the chart.
grZoom(GRF_MonGraphe, 5, 12, grXCoordinate)
grDraw(GRF_MonGraphe)
Syntax
grZoom(<Chart name> , <Minimum mark> [, <Maximum mark> [, <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 editor.
<Minimum mark>: Real Start mark on the specified axis.
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.
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:
| | grSecondaryYCoordinate | Secondary Y-axis (vertical axis). | grXCoordinate (default value) | X-axis (horizontal axis). | grYCoordinate | Y-axis (vertical axis). |
Remarks Marks on axes - X-axis (horizontal axis): the parameters <Graduation minimale> and <Graduation maximale> correspond to the minimum and maximum index of data in the series displayed.
- Y-axis (vertical axis): the parameters <Graduation minimale> and <Graduation maximale> correspond to the minimum and maximum values of the data.
- Limits: 100 graduations above and 100 graduations below the x-axis.
- To modify the frequency of marks on the horizontal or vertical axis of a chart, use grInterval.
- 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:
| | XAxisMax | The XAxisMax property gets the maximum value of the X-axis in a Chart control. This property can be used in the "Zoom" event of a Chart control to identify the section displayed. | XAxisMin | The XAxisMin property gets the minimum value of the X-axis in a Chart control. This property can be used in the "Zoom" event of a Chart control to identify the section displayed. | YAxisMax | The YAxisMax property gets the maximum value of the Y-axis in a Chart control. This property can be used in the "Zoom" event of a Chart control to identify the section displayed. | YAxisMin | The YAxisMin property gets the minimum value of the Y-axis in a Chart control. | ZAxisMax | The ZAxisMax property gets the maximum value of the Z-axis in a Chart control (Surface chart). | ZAxisMin | The ZAxisMin property gets the minimum value of the Z-axis in a Chart control (Surface chart). |
For example:
grZoom(GRF_MonGraphe, 5, 12, grXCoordinate)
grDraw(GRF_MonGraphe)
grZoom(GRF_MonGraphe, GRF_MonGraphe.AxeXMin, GRF_MonGraphe.AxeXMax, grXCoordinate)
grDraw(GRF_MonGraphe)
Managing the zoom grParameter is used to configure several options for zoom management in the Chart controls: - Managing scrollbars.
- Managing the zoom out.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|