- Tooltip options to configure
- Enabling/Disabling the tooltip
- Formatting the elements displayed in the tooltip
<Chart>.Tooltip (Function) In french: <Graphe>.Bulle
// Chart control // Display the percentages on a column chart CHART_MyChart.Label(grShowPercent, True) GRF_MonGraphe.Tooltip( grFormatBubble, -%"[%SERIE%]" + RC + -%"[%CATEGORIE%]" + RC + -%"[%VALEUR%]") CHART_MyChart.Tooltip(grShowTooltip, True) // Draw the chart CHART_MyChart.Draw()
Versions 23 and later
// Chart control // Display a specific tooltip for a point CHART_MyChart.Tooltip(1, 2, "The content of my tooltip") // Draw the chart CHART_MyChart.Draw()
New in version 23
// Chart control // Display a specific tooltip for a point CHART_MyChart.Tooltip(1, 2, "The content of my tooltip") // Draw the chart CHART_MyChart.Draw()
// Chart control // Display a specific tooltip for a point CHART_MyChart.Tooltip(1, 2, "The content of my tooltip") // Draw the chart CHART_MyChart.Draw()
Syntax
Displaying and formatting the tooltip associated with a Chart control Hide the details
<Chart control>.Tooltip(<Tooltip option to configure> , <Value of tooltip option>)
Finding out the characteristics of tooltip associated with a Chart control Hide the details
<Result> = <Chart control>.Tooltip(<Tooltip option>)
Displaying and customizing the tooltip associated with a point Hide the details
<Chart control>.grTooltip(<Series number> , <Category number> , <Tooltip value>)
<Chart control>: Control name Name of the Chart control to use (found in the window editor or the page editor).
<Series number>: Integer Number of the series to use. <Category number>: Integer Number of the category to use. <Tooltip value>: Character string (with quotes) Custom text of tooltip associated with the point. Remarks Tooltip options to configure | | | Constant | Effect | Value of option |
---|
grShowTooltip | Enables or disables the tooltip. | Boolean- True (by default) to enable the tooltip,
- False to avoid displaying it.
Caution: the parameters defined for the tooltip are not re-initialized during the display. | grTooltipFormat | Describes the tooltip format. | Character string- Empty string to use the default format.
- Combination of following strings:
[%SERIES%]: Displays the series caption (defined by <Chart>.SeriesLabel). [%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). [%VALUE%]: Displays the value Example: "[%VALUE%]"+CR+"[%CATEGORY%]" By default, the format is as follows: "[%CATEGORY%]"+CR+"[%SERIES%]"+"="+"[%VALUE%]" | grTooltipFormatStock | Describes the tooltip format for a Stock chart. | Character string- Empty string to use the default format.
- Combination of following strings:
[%SERIES%]: Displays the series caption (defined by <Chart>.SeriesLabel). [%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). [%MAX%]: Displays the maximum value of the session. [%MIN%]: Displays the minimum value of the session. [%START%]: Displays the first value of the session. [%END%]: Displays the end value of the session. By default, the format is as follows: "[%CATEGORY%]"+CR+"Min.=[%MIN%]"+CR+"Max.=[%MAX%]"+CR+"Start=[%START%]"+CR+"End=[%END%]" | Versions 20 and latergrTooltipFormatCrosshairHeader New in version 20grTooltipFormatCrosshairHeader grTooltipFormatCrosshairHeader | Describes the header format for the chart crosshairs. | Character string- Empty string to use the default format.
- Character string containing the following string:
[%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). By default, the format is as follows: "[%CATEGORY%]"
Versions 22 and laterStacked Column chart: The total of stack can be added into the tooltip of a stacked column chart by using the following syntax:
CHART_MyChart.grTooltip(grTooltipFormatCrosshairHeader, ... "[%CATEGORY%], Sum = [%VALUE%]")
New in version 22Stacked Column chart: The total of stack can be added into the tooltip of a stacked column chart by using the following syntax:
CHART_MyChart.grTooltip(grTooltipFormatCrosshairHeader, ... "[%CATEGORY%], Sum = [%VALUE%]")
Stacked Column chart: The total of stack can be added into the tooltip of a stacked column chart by using the following syntax:
CHART_MyChart.grTooltip(grTooltipFormatCrosshairHeader, ... "[%CATEGORY%], Sum = [%VALUE%]")
| Versions 16 and latergrTooltipFormatBubbleChart New in version 16grTooltipFormatBubbleChart grTooltipFormatBubbleChart | Describes the tooltip format for a bubble chart. | Character string- Empty string to use the default format.
- Combination of following strings:
[%SERIES%]: Displays the series caption (defined by <Chart>.SeriesLabel). [%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). [%X%]: Displays the X coordinate (first series) [%Y%]: Displays the Y coordinate (second series) [%Z%]: Displays the value of the third series. By default, the format is as follows: "([%X%];[%Y%]): [%Z%]"+CR+"[%CATEGORY%]" | grTooltipFormatScatter | Describes the tooltip format for a Scatter chart. | Character string- Empty string to use the default format.
- Combination of following strings:
[%SERIES%]: Displays the series caption (defined by <Chart>.SeriesLabel). [%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). [%X%]: Displays the X coordinate. By default, the format is as follows: "[%X%]"+CR+"[%Y%]"+CR+"[%SERIES%]"+CR+"[%CATEGORY%]" | Versions 21 and latergrTooltipFormatHeatMap New in version 21grTooltipFormatHeatMap grTooltipFormatHeatMap | Describes the tooltip format for a Heatmap chart. | Character string- Empty string to use the default format.
- Combination of following strings:
[%SERIES%]: Displays the series caption (defined by <Chart>.SeriesLabel). [%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). [%X%]: Displays the X coordinate (first series) [%Y%]: Displays the Y coordinate (second series) [%Z%]: Displays the value of the third series. By default, the format is as follows: "([%X%];[%Y%]): [%Z%]"+CR+"[%CATEGORY%]" | grTooltipFormatPie | Describes the tooltip format for a Pie chart. | Character string
- Empty string to use the default format.
- Combination of following strings:
[%SERIES%]: Displays the series caption (defined by <Chart>.SeriesLabel). [%CATEGORY%]: Displays the category caption (defined by <Chart>.CategoryLabel). [%VALUE%]: Displays the value [%%%]: Displays the percentage Example: "[%VALUE%]"+CR+"[%CATEGORY%]"+CR+"[%%%]" By default, the format is as follows: "[%CATEGORY%]"+CR+"[%VALUE%]"+CR+"[%%%]" |
If the default format is used: Versions 22 and laterCaution: If you use the dynamic construction of chains (option "Allow "[%]" in chains" in the "Compilation" tab of the project's description), a compilation error appears (unknown identifier). In this case, each string must be preceded by '-%'. Example:
CHART_Deadline.Tooltip(grTooltipFormat, "[%CATEGORY%]" +CR +CR + "[%VALUE%]" + "H")
becomes
CHART_Deadline.Tooltip(grTooltipFormat, -%"[%CATEGORY%]" + CR + CR + -%"[%VALUE%]" + " H")
New in version 22Caution: If you use the dynamic construction of chains (option "Allow "[%]" in chains" in the "Compilation" tab of the project's description), a compilation error appears (unknown identifier). In this case, each string must be preceded by '-%'. Example:
CHART_Deadline.Tooltip(grTooltipFormat, "[%CATEGORY%]" +CR +CR + "[%VALUE%]" + "H")
becomes
CHART_Deadline.Tooltip(grTooltipFormat, -%"[%CATEGORY%]" + CR + CR + -%"[%VALUE%]" + " H")
Caution: If you use the dynamic construction of chains (option "Allow "[%]" in chains" in the "Compilation" tab of the project's description), a compilation error appears (unknown identifier). In this case, each string must be preceded by '-%'. Example:
CHART_Deadline.Tooltip(grTooltipFormat, "[%CATEGORY%]" +CR +CR + "[%VALUE%]" + "H")
becomes
CHART_Deadline.Tooltip(grTooltipFormat, -%"[%CATEGORY%]" + CR + CR + -%"[%VALUE%]" + " H")
Enabling/Disabling the tooltip The tooltip activation/deactivation ( grShowTooltip constant) is taken into account when running <Chart>.Draw. Formatting the elements displayed in the tooltip To format the values displayed in the tooltip (value and percentage), use <Chart>.Mask.
This page is also available for…
|
|
|