ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Chart>.PointInfo (Function)
In french: <Graphe>.InfoPoint
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.
Remark: This function must be used after <Chart>.Draw (once the chart was drawn).
Example
// Coordonnées du centre d'un graphe de type Radar affiché dans un champ Graphe
Coordonnées is string
Coordonnées = GRF_Radar.InfoPoint(grXCoordinate, grAxisX, grMin) + "," + 
GRF_Radar.InfoPoint(grYCoordinate, grAxisY, grMin)
// Coordonnées de la zone utile d'un graphe affiché dans un champ Graphe
Zone_Utile is string
Zone_Utile = GRF_Courbes.InfoPoint(grXCoordinate, grAxisX, grMin) + "," + ...
GRF_Courbes.InfoPoint(grXCoordinate, grAxisX, grMax) + ":" + ...
GRF_Courbes.InfoPoint(grYCoordinate, grAxisY, grMin) + ","+ ...
GRF_Courbes.InfoPoint(grYCoordinate, grAxisY, grMax)
// Coordonnées de la zone comprise entre la coordonnée Y minimale et maximale
Zone is string
Zone = GRF_Courbes.InfoPoint(grYCoordinate, 1, grMin) + "," + ...
GRF_Courbes.InfoPoint(grYCoordinate, 1, grMax)
Syntax
<Result> = <Chart control>.PointInfo(<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 control>: Control name
Name of the Chart control to use (found in the window editor or the 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 find out the coordinates of the point corresponding to the bounds of the axes:
    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 find out the coordinates of the point corresponding to the bounds of the axes:
    grMaxCoordinates of upper bound.
    grMinCoordinates of lower bound.
Business / UI classification: Neutral code
Component: wd290grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/28/2024

Send a report | Local help