ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
grPointInfo (Function)
In french: grInfoPoint
Warning
From version 24, grInfoPoint is kept for backward compatibility. This function has been replaced with grPointInfo.
Returns the screen coordinates of a point or the screen coordinates of a value found in a chart.
This function allows you to retrieve the coordinates of a chart area in order to draw in this area with the drawing functions.
Note: This function must be used after function grDraw (when the graph has been drawn).
Example
// Coordonnées à l'écran d'un point du graphe créé par programmation
x is int
x = grPointInfo("MonGraphe", grXCoordinate, 1, 1)
// Coordonnées du centre d'un graphe de type Radar affiché dans un champ Graphe
Coordonnées is string
Coordonnées = grPointInfo(GRF_Radar, grXCoordinate, grAxisX, grMin) + "," + 
		grPointInfo(GRF_Radar, grYCoordinate, grAxisY, grMin)
// Coordonnées de la zone utile d'un graphe affiché dans un champ Graphe
Zone_Utile is string
Zone_Utile = grPointInfo(GRF_Courbes, grXCoordinate, grAxisX, grMin) + "," + ...
		grPointInfo(GRF_Courbes, grXCoordinate, grAxisX, grMax) + ":" + ...
		grPointInfo(GRF_Courbes, grYCoordinate, grAxisY, grMin) + ","+ ...
		grPointInfo(GRF_Courbes, grYCoordinate, grAxisY, grMax)
// Coordonnées de la zone comprise entre la coordonnée Y minimale et maximale
Zone is string
Zone = grPointInfo(GRF_Courbes, grYCoordinate, 1, grMin) + "," + ...
		grPointInfo(GRF_Courbes, grYCoordinate, 1, grMax)
Syntax
<Result> = grPointInfo(<Chart name> , <Type of axis> , <Series number> , <Category number>)
<Result>: Integer
Coordinates of the specified point (in pixels) according to the specified axis. The coordinates are specified in relation to the chart (and not in relation to the screen).
<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 or page editor).
<Type of axis>: Integer constant
Type of the axis taken into account when calculating the coordinates:
grXCoordinate
(Default value)
The coordinate is calculated on the X-axis.
grYCoordinateThe coordinate is calculated on the Y-axis.
<Series number>: Integer
  • Number of the affected series.
  • Constant used to determine the coordinates of the point corresponding to the axis terminals:
    grAxisXCoordinates of bounds on the X-axis.
    grAxisYCoordinates of bounds on the Y-axis.
<Category number>: Integer
  • Number of the affected category.
  • Constant used to determine the coordinates of the point corresponding to the axis terminals:
    grMaxCoordinates of upper bound.
    grMinCoordinates of lower bound.
Business / UI classification: Neutral code
Component: wd300grf.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help