PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • 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, ...). 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.
WEBDEV - Server code In a page of a WEBDEV site, the chart must be interactive in order for the tooltip to be displayed. To make the chart interactive, check "Interactive chart" in the "Details" tab of the control description.
Versions 19 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 19
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 20 and later
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites in Windows and Linux.
New in version 20
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites in Windows and Linux.
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites in Windows and Linux.
Versions 23 and later
PHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
New in version 23
PHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
PHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
Example
WindowsLinuxiPhone/iPad
// Chart created by programming
i is int
// Create the chart
grCreate("MyChart", grPie)
// Destination of chart
grDestinationControl("MyChart", IMG_Image1)
// Display the percentages
grLabel("MyChart", grShowPercent, True)
// Add data
nValue is int
FOR i = 1 TO 200
nValue = Random(30)
grAddData("MyChart", 1, nValue)
grCategoryLabel("MyChart", i, "Test" + i)
grSeriesLabel("MyChart", 1, "Test series")
END
grTooltip("MyChart", grTooltipFormatPie, "[%SERIES%]" + CR + "[%CATEGORY%]" + CR + "[%%%]")
grTooltip("MyChart", grShowTooltip, True)
// Draw the chart
grDraw("MyChart")
// Chart control
// Display the percentages on a column chart
grLabel(CHART_MyChart, grShowPercent, True)
grTooltip(CHART_MyChart, grTooltipFormat, "[%SERIES%]" + CR + "[%CATEGORY%]" + CR + "[%VALUE%]")
grTooltip(CHART_MyChart, grShowTooltip, True)
// Draw the chart
grDraw(CHART_MyChart)
Versions 23 and later
// Chart control
// Display a specific tooltip for a point
grTooltip(CHART_MyChart, 1, 2, "The tooltip content")
// Draw the chart
grDraw(CHART_MyChart)
New in version 23
// Chart control
// Display a specific tooltip for a point
grTooltip(CHART_MyChart, 1, 2, "The tooltip content")
// Draw the chart
grDraw(CHART_MyChart)
// Chart control
// Display a specific tooltip for a point
grTooltip(CHART_MyChart, 1, 2, "The tooltip content")
// Draw the chart
grDraw(CHART_MyChart)
Syntax

Displaying and formatting the tooltip associated with a chart Hide the details

grTooltip(<Chart Name> , <Tooltip Option to Configure> , <Value of Tooltip Option>)
<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.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.
<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.
WEBDEV - Server codeAndroid This constant is not available.
Versions 20 and later
grTooltipFormatCrosshairHeader
New in version 20
grTooltipFormatCrosshairHeader
grTooltipFormatCrosshairHeader
Describes the header format for the chart crosshairs.
Windows Mobile This constant is not available.
Versions 16 and later
grTooltipFormatBubbleChart
New in version 16
grTooltipFormatBubbleChart
grTooltipFormatBubbleChart
Describes the tooltip format for a bubble chart.
WEBDEV - Server code This constant is not available.
Android This constant is not available.
Versions 21 and later
grTooltipFormatHeatMap
New in version 21
grTooltipFormatHeatMap
grTooltipFormatHeatMap
Describes the tooltip format for a heatmap chart.
WEBDEV - Server codeWindows Mobile This constant is not available.
AndroidWindows Mobile This constant is not available.
grTooltipFormatScatterDescribes the tooltip format for a scatter chart.
WEBDEV - Server code This constant is not available.
Android This constant is not available.
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 Hide the details

<Result> = grTooltip(<Chart Name> , <Tooltip Option>)
<Result>: Type corresponding to the option (boolean or character string)
Value of sought option.
<Chart Name>: Character string
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.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.
<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.
WEBDEV - Server codeAndroid This constant is not available.
Versions 20 and later
grTooltipFormatCrosshairHeader
New in version 20
grTooltipFormatCrosshairHeader
grTooltipFormatCrosshairHeader
Describes the header format for the chart crosshairs.
Windows Mobile This constant is not available.
Versions 16 and later
grTooltipFormatBubbleChart
New in version 16
grTooltipFormatBubbleChart
grTooltipFormatBubbleChart
Describes the tooltip format for a bubble chart.
WEBDEV - Server code This constant is not available.
Android This constant is not available.
Versions 21 and later
grTooltipFormatHeatMap
New in version 21
grTooltipFormatHeatMap
grTooltipFormatHeatMap
Describes the tooltip format for a heatmap chart.
WEBDEV - Server codeWindows Mobile This constant is not available.
AndroidWindows Mobile This constant is not available.
grTooltipFormatScatterDescribes the tooltip format for a scatter chart.
WEBDEV - Server code This constant is not available.
Android This constant is not available.
grTooltipFormatPieDescribes the tooltip format for a pie chart.
Versions 23 and later

Displaying and customizing the tooltip associated with a point Hide the details

grTooltip(<Chart Name> , <Series Number> , <Category Number> , <Tooltip Value>)
<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.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.
<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.
New in version 23

Displaying and customizing the tooltip associated with a point Hide the details

grTooltip(<Chart Name> , <Series Number> , <Category Number> , <Tooltip Value>)
<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.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.
<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.

Displaying and customizing the tooltip associated with a point Hide the details

grTooltip(<Chart Name> , <Series Number> , <Category Number> , <Tooltip Value>)
<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.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.
<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

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 series (defined by grSeriesLabel).
    [%CATEGORY%]: Displays the caption of category (defined by grCategoryLabel).
    [%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 series (defined by grSeriesLabel).
    [%CATEGORY%]: Displays the caption of category (defined by grCategoryLabel).
    [%MAX%]: Displays the maximum value
    [%MIN%]: Displays the minimum value
    [%START%]: Displays the first value
    [%END%]: Displays the closing value.
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 category (defined by grCategoryLabel).
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:
grTooltip(MySelf, 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:
grTooltip(MySelf, 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:
grTooltip(MySelf, 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 series (defined by grSeriesLabel).
    [%CATEGORY%]: Displays the caption of category (defined by grCategoryLabel).
    [%X%]: Displays the coordinate (first series)
    [%Y%]: Displays the X coordinate (second series)
    [%Z%]: Displays the value of 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 series (defined by grSeriesLabel).
    [%CATEGORY%]: Displays the caption of category (defined by grCategoryLabel).
    [%X%]: Displays the 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 series (defined by grSeriesLabel).
    [%CATEGORY%]: Displays the caption of category (defined by grCategoryLabel).
    [%X%]: Displays the coordinate (first series)
    [%Y%]: Displays the X coordinate (second series)
    [%Z%]: Displays the value of 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 series (defined by grSeriesLabel).
    [%CATEGORY%]: Displays the caption of category (defined by grCategoryLabel).
    [%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:
  • "[%CATEGORY%]" is ignored if no category caption was specified by grCategoryLabel.
  • the "[%SERIES%]" string is ignored if no series caption was specified by grSeriesLabel.
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:
grTooltip(GR_Deadline, grTooltipFormat, "[%CATEGORY%]" + CR + CR+ "[%VALUE%]" + " H")
becomes
grTooltip(GR_Deadline, 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:
grTooltip(GR_Deadline, grTooltipFormat, "[%CATEGORY%]" + CR + CR+ "[%VALUE%]" + " H")
becomes
grTooltip(GR_Deadline, 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:
grTooltip(GR_Deadline, grTooltipFormat, "[%CATEGORY%]" + CR + CR+ "[%VALUE%]" + " H")
becomes
grTooltip(GR_Deadline, grTooltipFormat, -%"[%CATEGORY%]" + CR + CR + -%"[%VALUE%]" + " H")

Enabling/Disabling the tooltip

Enabling/Disabling the tooltip (grShowTooltip constant) is taken into account when running grDraw.

Formatting the elements displayed in the tooltip

To format the values displayed in the tooltip (value and percentage), use grMask.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Linux wd230grf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment