AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de gráficos
  • Marks on axes
  • Types of charts
  • Restoring the default values
  • Managing the zoom
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Defines the zoom of a chart.
Note: This function is similar to <Chart>.Origen.. However, the <Chart>.Zoom FUNCTION function allows the user to return to the initial zoom of the graph using one of the following methods:
  • AndroidiPhone/iPadIOS WidgetMac Catalyst via a double tap on the chart.
Ejemplo
GRF_MonGraphe.Zoom(5, 12, grXCoordinate)
GRF_MonGraphe.Dessine()
Sintaxis
<Chart control>.Zoom(<Minimum mark> [, <Maximum mark> [, <Axis>]])
<Chart control>: Nombre del control
Name of the Chart control to use (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>: Real opcional
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>: Constante opcional de tipo Integer
Axis for which the marks must be modified:
grSecondaryYCoordinateSecondary Y-axis (vertical axis).
grXCoordinate
(default value)
X-axis (horizontal axis).
grYCoordinateY-axis (vertical axis).
Observaciones

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 value 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 <Chart>.Intervalo.
  • The data defined by <Chart>.Zoom 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 chart display before the zoom, the minimum and maximum values of axes must be used. These values can be known via the following properties:
XAxisMaxLa propiedad XAxisMax obtiene el valor máximo del eje X en un control Gráfico. Esta propiedad se puede utilizar en el evento "Zoom" de un control Gráfico para identificar la sección mostrada.
XAxisMinLa propiedad XAxisMin obtiene el valor mínimo del eje X de un control Gráfico. Esta propiedad se puede utilizar en el evento "Zoom" de un control Gráfico para identificar la sección mostrada.
YAxisMaxLa propiedad YAxisMax obtiene el valor máximo del eje Y de un control Gráfico. Esta propiedad se puede utilizar en el evento "Zoom" de un control Gráfico para identificar la sección mostrada.
YAxisMinLa propiedad YAxisMin obtiene el valor mínimo del eje Y de un control Gráfico.
ZAxisMaxLa propiedad ZAxisMax obtiene el valor máximo del eje Z en un control Gráfico (Gráfico de superficie).
ZAxisMinLa propiedad ZAxisMin obtiene el valor mínimo del eje Z en un control Gráfico (Gráfico de superficie).
For example:
// Code permettant de zoomer
GRF_MonGraphe.Zoom(5, 12, grXCoordinate)
GRF_MonGraphe.Dessine()
// Code permettant de dé-zoomer
GRF_MonGraphe.Zoom(GRF_MonGraphe.AxeXMin, GRF_MonGraphe.AxeXMax, grXCoordinate)
GRF_MonGraphe.Dessine()

Managing the zoom

<Chart>.Parámetro is used to configure several options for zoom management in the Chart controls:
  • Managing scrollbars.
  • Managing the zoom out.
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local