PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • X and Y positions
  • Column chart
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
grInfoXY (Function)
In French: grInfoXY
Returns information about the series found at a specific chart point. This information is identical to the one displayed in the tooltip.
Note: This function is not available for the 3D charts and for the Surface charts.
Versions 15 and later
Linux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
New in version 15
Linux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Linux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for the Android applications.
New in version 19
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 20 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 20
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App
// Click code on a chart
Information is string = ...
"(" + MouseXPos() + "," + MouseYPos() + ")" + CR + ...
"grSeries -->" + TAB + grInfoXY(MySelf, grSeries, MouseXPos(), MouseYPos()) + CR + ...
"grCategory -->" + TAB + grInfoXY(MySelf, grCategory, ...
MouseXPos(), MouseYPos()) + CR + ...
"grValue -->" + TAB + grInfoXY(MySelf, grValue, ...
MouseXPos(), MouseYPos()) + CR + ...
"grXValue -->" + TAB + grInfoXY(MySelf, ...
MouseXPos(), MouseYPos()) + CR + ...
"grMinValue -->" + TAB + grInfoXY(MySelf, grMinValue, ...
MouseXPos(), MouseYPos()) + CR + ...
"grYValue -->" + TAB + grInfoXY(MySelf, grYValue, ...
MouseXPos(), MouseYPos()) + CR + ...
"grMaxValue -->" + TAB + grInfoXY(MySelf, grMaxValue, ...
MouseXPos(), MouseYPos()) + CR + ...
"grStartValue -->" + TAB + grInfoXY(MySelf, grStartValue, ...
MouseXPos(), MouseYPos()) + CR + ...
"grEndValue -->" + TAB + grInfoXY(MySelf, grEndValue, MouseXPos(), MouseYPos())
Versions 19 and later
WEBDEV - Browser codeAndroid
// Click code on a chart
Information is string = ...
"(" + MouseXPos() + "," + MouseYPos() + ")" + CR + ...
"grSeries -->" + TAB + grInfoXY(MySelf, grSeries, MouseXPos(), MouseYPos()) + CR + ...
"grCategory -->" + TAB + grInfoXY(MySelf, grCategory, ...
MouseXPos(), MouseYPos()) + CR + ...
"grValue -->" + TAB + grInfoXY(MySelf, grValue, ...
MouseXPos(), MouseYPos()))
New in version 19
WEBDEV - Browser codeAndroid
// Click code on a chart
Information is string = ...
"(" + MouseXPos() + "," + MouseYPos() + ")" + CR + ...
"grSeries -->" + TAB + grInfoXY(MySelf, grSeries, MouseXPos(), MouseYPos()) + CR + ...
"grCategory -->" + TAB + grInfoXY(MySelf, grCategory, ...
MouseXPos(), MouseYPos()) + CR + ...
"grValue -->" + TAB + grInfoXY(MySelf, grValue, ...
MouseXPos(), MouseYPos()))
WEBDEV - Browser codeAndroid
// Click code on a chart
Information is string = ...
"(" + MouseXPos() + "," + MouseYPos() + ")" + CR + ...
"grSeries -->" + TAB + grInfoXY(MySelf, grSeries, MouseXPos(), MouseYPos()) + CR + ...
"grCategory -->" + TAB + grInfoXY(MySelf, grCategory, ...
MouseXPos(), MouseYPos()) + CR + ...
"grValue -->" + TAB + grInfoXY(MySelf, grValue, ...
MouseXPos(), MouseYPos()))
Syntax
<Result> = grInfoXY(<Chart Name> , <Type of Information> [, <X> , <Y>])
<Result>: Integer or real
  • Requested information.
  • If no chart element is found under the mouse,
    • -1 (grSeries and grCategory constants)
    • 0 (grValueXXXX constant).
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control (found in the window editor or page editor).
Android Only the Chart controls are available.
WEBDEV - Browser code Only the interactive Chart controls are available ("Interactive chart" in the "Details" tab of the description window of control).
<Type of Information>: Constant
Requested type of information:
grCategoryNumber of pointed category.
Versions 20 and later
grPath
New in version 20
grPath
grPath
Path of section in the Sunburst chart.
WEBDEV - Server codeWEBDEV - Browser codeAndroidiPhone/iPadWindows Mobile This constant is not available.
Versions 22 and later
grXCoord
New in version 22
grXCoord
grXCoord
X coordinate of chart point.
WEBDEV - Browser codeAndroid This constant is not available.
Versions 22 and later
grYCoord
New in version 22
grYCoord
grYCoord
Y coordinate of chart point.
WEBDEV - Browser codeAndroid This constant is not available.
Versions 22 and later
grSecondaryYCoord
New in version 22
grSecondaryYCoord
grSecondaryYCoord
Y coordinate according to the secondary axis of chart point.
WEBDEV - Browser codeAndroid This constant is not available.
grSeriesSeries number.
Note: There is one series on 4 or on 2 for the Stock charts and for the Scatter charts.
grValueValue of series.
grStartValueStart value of the series for a Stock chart.
WEBDEV - Browser codeAndroid This constant is not available.
grEndValueEnd value of the series for a Stock chart.
WEBDEV - Browser codeAndroid This constant is not available.
grMaxValueMaximum value of the series for a Stock chart.
WEBDEV - Browser codeAndroid This constant is not available.
grMinValueMinimum value of the series for a Stock chart.
WEBDEV - Browser codeAndroid This constant is not available.
grXValueX value of series for a Scatter chart.
WEBDEV - Browser codeAndroid This constant is not available.
grYValueY value of series for a Scatter chart.
WEBDEV - Browser codeAndroid This constant is not available.
<X>: Optional integer
X coordinate (in pixels) to study. This coordinate is expressed in relation to the control.
If this parameter is not specified, the position used during the last call to grInfoXY is taken into account.
<Y>: Optional integer
Y coordinate (in pixels) to study. This coordinate is expressed in relation to the control.
If this parameter is not specified, the position used during the last call to grInfoXY is taken into account.
Remarks

X and Y positions

The <X> and <Y> parameters must be specified at least once.
A WLanguage error occurs if the chart has changed between 2 calls to grInfoXY and if the X and Y positions are not specified.

Column chart

When clicking a bar of the column chart, the area taken into account will be a little bit larger (at the top and at the bottom).
Related Examples:
The Chart control (click management) Unit examples (WINDEV): The Chart control (click management)
[ + ] Customizing the click on a Pie chart.
Here, the section clicked by the user is pulled out by the application.
To implement this behavior, all you have to do is use grInfoXY (to identify the section clicked) and grPiePullOut (to pull out the section).
WM Click on Chart Cross-platform examples (WINDEV Mobile): WM Click on Chart
[ + ] The "WM Click on Chart" example proposes a solution for pulling out the sections of a Pie chart via a simple click.
This example includes a control template named "TPLC_PullOutChart". This control template is used to pull out the chart sections via a simple click.
To include this feature in another application, all you have to do is import the "TPLC_PullOutChart" template.
Pocket Click on Chart Mobile (WINDEV Mobile): Pocket Click on Chart
[ + ] The "Pocket Click on Chart" example proposes a solution for pulling out the sections of a pie chart via a simple user click.

This example includes a control template named "TPLC_PullOutChart". This control template is used to enable the pulling out of a chart section via a simple click.

To make this feature available in another application, all you have to do is import the control template named "TPLC_PullOutChart".
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230grf.so
Android wd230android.jar
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment