|
|
|
|
|
- X and Y positions
- Column chart
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. Remark: This function is not available for the 3D charts and for the Surface charts. 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>: Control name or character string Name of the chart to be used. This name corresponds to:- the chart name defined through programming with grCreate.
- the name of the Chart control (in the window or page editor).
<Type of information>: Constant Type of information requested: | | grCategory | Number of pointed category. | 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. | grPath | Path of section in the Sunburst chart. | grXCoord | X-coordinate of chart point. | grYCoord | Y-coordinate of chart point. | grSecondaryYCoord | Y-coordinate according to the secondary axis of chart point. | grSeries | Series number. Remark: There is one series on 4 or on 2 for the Stock charts and for the Scatter charts. | grValue | Value of series. | grStartValue | Start value of the series for a Stock chart. | grEndValue | End value of the series for a Stock chart. | grMaxValue | Maximum value of the series for a Stock chart. | grMinValue | Minimum value of the series for a Stock chart. | grXValue | X value of series for a Scatter chart. | grYValue | Y value of series for a Scatter chart.
|
<X>: Optional integer X-coordinate (in pixels) to be analyzed. This coordinate is expressed in relation to the control. If this parameter is not specified, the position used in the last call to grInfoXY is taken into account. <Y>: Optional integer Y-coordinate (in pixels) to be analyzed. This coordinate is expressed in relation to the control. If this parameter is not specified, the position used in 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:
|
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).
|
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|