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 / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Gráfico
  • Overview
  • Implementation
  • Crosshair in a Chart control
  • Crosshair in the AAFs (Automatic Application Features)
  • Modifying the multiple crosshair programmatically
  • Configuring the crosshair options programmatically
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
Overview
In a Line chart, it may be difficult to read the value of axes for a point that is far from these axes.
Via the new crosshair included in all charts, the end user precisely knows the pointed value.
All charts with axes automatically benefit from the crosshair.
The user hovers a point in the chart and the crosshair is displayed!
Crosshair on a line
If the Vertical crosshairs intersect several curves, they display the value at each intersection: this is the multiple crosshairs..
Multiple crosshairs
For a multiple crosshair, the tooltip header can be customized.
Implementation

Crosshair in a Chart control

The crosshair is available by default for all Chart controls created from version 20.
To display a crosshair in a Chart control:
  1. Open the Chart control description window.
  2. In the "Details" tab:
    • WINDEVAndroidiPhone/iPad in the "Zoom y mira" area, check "Activar mira del gráfico".
      The "Mira múltiple (líneas y columnas apiladas)" option allows using multiple crosshairs in Line or Column charts.
    • WEBDEV - Código ServidorPHP in the "Interactivity" area, check (if necessary) "Interactive chart" then check "Enable the chart crosshair".
      The "Multiple crosshair" option allows you to get a multiple crosshair in the Line or Column charts.
      PHP Only the interactive Chart controls are available in PHP.
  3. Validate the control description window.
Remarks:
  • The crosshairs are available for the following graph types: Area, Bubble, Curve, Column chart, MinMax, Radar and Waterfall.
  • WEBDEV - Código ServidorPHP You can define the characteristics of the crosshairs in the "Style" tab of the Chart control: color, opacity and thickness..
WINDEV

Crosshair in the AAFs (Automatic Application Features)

If the crosshair is not enabled in a chart, it can be enabled by the user via the context menu of chart ("Enable the crosshair").

Modifying the multiple crosshair programmatically

By default, the multiple crosshair displays:
  • in header, the category name.
  • the content of different tooltips for the points corresponding to the crosshair.
It is possible to modify the header of the crosshair tooltip via grTooltip associated with the grTooltipFormatCrosshairHeader constant.
For example:
grTooltip(GRF_Graphe1, grTooltipFormatCrosshairHeader, "Catégorie: [%CATEGORIE%]")

Configuring the crosshair options programmatically

The crosshair has the following characteristics by default:
  • color based on the color of gridlines in the Chart control.
  • thickness: 1 pixel.
  • Opacity: completely opaque crosshairs.
These characteristics can be modified by the following properties:
CrosshairColorLa propiedad CrosshairColor obtiene y establece el color de la mira de un control Gráfico.
CrosshairOpacityLa propiedad CrosshairOpacity se utiliza para determinar y cambiar la opacidad de la mira en un control Gráfico.
CrosshairThicknessLa propiedad CrosshairThickness se utiliza para determinar y cambiar el grosor de la mira en un control Gráfico.

Android The properties are not available.
Versión mínima requerida
  • Versión 20
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