PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
<Chart>.InfoXY (Function)
In french: <Graphe>.InfoXY
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.
Example
Syntax
<Result> = <Chart control>.InfoXY(<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 control>: Control name
Name of the Chart control to use (found in the window editor or the page editor).
<Type of information>: Constant
Requested type of information:
grCategoryNumber of pointed category.
Versions 23 and later
grTheoreticalCategory
New in version 23
grTheoreticalCategory
grTheoreticalCategory
Number of the category that corresponds to a pointed X coordinate (regardless of the series) and even if the cursor is not on the chart drawing.
Versions 20 and later
grPath
New in version 20
grPath
grPath
Path of section in the Sunburst chart.
Versions 22 and later
grXCoord
New in version 22
grXCoord
grXCoord
X coordinate of chart point.
Versions 22 and later
grYCoord
New in version 22
grYCoord
grYCoord
Y coordinate of chart point.
Versions 22 and later
grSecondaryYCoord
New in version 22
grSecondaryYCoord
grSecondaryYCoord
Y coordinate according to the secondary axis of chart point.
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.
grEndValueEnd value of the series for a Stock chart.
grMaxValueMaximum value of the series for a Stock chart.
grMinValueMinimum value of the series for a Stock chart.
grXValueX value of series for a Scatter chart.
grYValueY value of series for a Scatter chart.
<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 <Chart>.InfoXY 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 <Chart>.InfoXY 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 <Chart>.InfoXY 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".
Component : wd250grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment