PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Tooltip options to configure
  • Enabling/Disabling the tooltip
  • Formatting the elements displayed in the tooltip
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
Displays and formats:
  • the tooltip associated with each chart section (section for a Pie chart, bar for a Column chart, etc.). Also allows you to find out the characteristics of the tooltip associated with each chart section.
  • Versions 23 and later
    a custom tooltip, associated with a point.
    New in version 23
    a custom tooltip, associated with a point.
    a custom tooltip, associated with a point.
By default, a tooltip is automatically displayed (grShowTooltip set to True) when a chart is hovered by the mouse cursor.
Versions 20 and later
WindowsLinux This function is now available for the WEBDEV sites in Windows and Linux.
New in version 20
WindowsLinux This function is now available for the WEBDEV sites in Windows and Linux.
WindowsLinux This function is now available for the WEBDEV sites in Windows and Linux.
Example
// Chart control
// Display the percentages on a column chart
CHART_MyChart.Label(grShowPercent, True)
CHART_MyChart.Tooltip(grTooltipFormat, "[%SERIES%]" + CR + "[%CATEGORY%]" + CR + "[%VALUE%]")
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>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor).
<Tooltip option to configure>: Integer constant
Enables or disables the tooltip and configures its characteristics.
grShowTooltipEnables or disables the tooltip.
grTooltipFormatDescribes the tooltip format.
grTooltipFormatStockDescribes the tooltip format for a Stock chart.
Versions 20 and later
grTooltipFormatCrosshairHeader
New in version 20
grTooltipFormatCrosshairHeader
grTooltipFormatCrosshairHeader
Describes the header format for the chart crosshairs.
Versions 16 and later
grTooltipFormatBubbleChart
New in version 16
grTooltipFormatBubbleChart
grTooltipFormatBubbleChart
Describes the tooltip format for a Bubble chart.
Versions 21 and later
grTooltipFormatHeatMap
New in version 21
grTooltipFormatHeatMap
grTooltipFormatHeatMap
Describes the tooltip format for a Heatmap chart.
grTooltipFormatScatterDescribes the tooltip format for a Scatter chart.
grTooltipFormatPieDescribes the tooltip format for a Pie chart.
<Value of tooltip option>: Character string or boolean
Value of option for the selected tooltip. This value depends on the selected option (see the above table).

Finding out the characteristics of tooltip associated with a Chart control Hide the details

<Result> = <Chart control>.Tooltip(<Tooltip option>)
<Result>: Type corresponding to the option (boolean or character string)
Value of sought option.
<Chart control>: Control name
Name of the Chart control to use (found in the window editor).
<Tooltip option>: Integer constant
Tooltip option whose value is requested.
grShowTooltipEnables or disables the tooltip.
grTooltipFormatDescribes the tooltip format.
grTooltipFormatStockDescribes the tooltip format for a Stock chart.
Versions 20 and later
grTooltipFormatCrosshairHeader
New in version 20
grTooltipFormatCrosshairHeader
grTooltipFormatCrosshairHeader
Describes the header format for the chart crosshairs.
Versions 16 and later
grTooltipFormatBubbleChart
New in version 16
grTooltipFormatBubbleChart
grTooltipFormatBubbleChart
Describes the tooltip format for a Bubble chart.
Versions 21 and later
grTooltipFormatHeatMap
New in version 21
grTooltipFormatHeatMap
grTooltipFormatHeatMap
Describes the tooltip format for a Heatmap chart.
grTooltipFormatScatterDescribes the tooltip format for a Scatter chart.
grTooltipFormatPieDescribes the tooltip format for a Pie chart.
Remarks

Tooltip options to configure

ConstantEffectValue of option
grShowTooltipEnables 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.
grTooltipFormatDescribes the tooltip format.Character string
  • Empty string to use the default format.
  • Combination of following strings:
    [%SERIES%]: Displays the caption of the series (defined by <Chart>.SeriesLabel).
    [%CATEGORY%]: Displays the caption of the category (defined by <Chart>.CategoryLabel).
    [%VALUE%]: Displays the value
    Example: "[%VALUE%]"+CR+"[%CATEGORY%]"
By default, the format is as follows: "[%CATEGORY%]"+CR+"[%SERIES%]"+"="+"[%VALUE%]"
grTooltipFormatStockDescribes the tooltip format for a Stock chart.Character string
  • Empty string to use the default format.
  • Combination of following strings:
    [%SERIES%]: Displays the caption of the series (defined by <Chart>.SeriesLabel).
    [%CATEGORY%]: Displays the caption of the category (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 later
grTooltipFormatCrosshairHeader
New in version 20
grTooltipFormatCrosshairHeader
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 caption of the category (defined by <Chart>.CategoryLabel).
By default, the format is as follows: "[%CATEGORY%]"
Versions 22 and later
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%]")
New in version 22
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%]")
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 later
grTooltipFormatBubbleChart
New in version 16
grTooltipFormatBubbleChart
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 caption of the series (defined by <Chart>.SeriesLabel).
    [%CATEGORY%]: Displays the caption of the category (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%]"
grTooltipFormatScatterDescribes the tooltip format for a Scatter chart.Character string
  • Empty string to use the default format.
  • Combination of following strings:
    [%SERIES%]: Displays the caption of the series (defined by <Chart>.SeriesLabel).
    [%CATEGORY%]: Displays the caption of the category (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 later
grTooltipFormatHeatMap
New in version 21
grTooltipFormatHeatMap
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 caption of the series (defined by <Chart>.SeriesLabel).
    [%CATEGORY%]: Displays the caption of the category (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%]"
grTooltipFormatPieDescribes the tooltip format for a Pie chart.Character string
  • Empty string to use the default format.
  • Combination of following strings:
    [%SERIES%]: Displays the caption of the series (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:
  • the "[%CATEGORY%]" string is ignored if no category caption has been specified by <Chart>.CategoryLabel.
  • the "[%SERIES%]" string is ignored if no series caption has been specified with <Chart>.SeriesLabel.
Versions 22 and later
Caution: If you are using the dynamic construction of strings ("Allow "[% %]" in the strings" option in the "Compilation" tab of project description), a compilation error occurs (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 22
Caution: If you are using the dynamic construction of strings ("Allow "[% %]" in the strings" option in the "Compilation" tab of project description), a compilation error occurs (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 are using the dynamic construction of strings ("Allow "[% %]" in the strings" option in the "Compilation" tab of project description), a compilation error occurs (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.
Component : wd250grf.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment