ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
grAutoRefreshCategoryLabel (Function)
In french: grMAJAutomatiqueEtiquetteCatégorie
Identifies or defines whether the category labels are refreshed whenever the chart is drawn. In this case, the content of the series is automatically recalculated whenever grDraw is called. The category labels are refreshed if necessary.
Example of use: a series in a graph is used as a reference series: this series is not updated automatically.
Linux Caution: Using this function under Linux requires a specific configuration.. For more details, see The charts.
Example
// Chart created programmatically
IF grAutoRefreshCategoryLabel("MyChart") = True THEN
	grDraw("MyChart")
END
// Chart control
IF grAutoRefreshCategoryLabel(CHART_MyChart) = True THEN
grDraw(CHART_MyChart)
END
Syntax

Identifying the mode used to refresh the category labels Hide the details

<Result> = grAutoRefreshCategoryLabel(<Chart name>)
<Result>: Boolean
Current mode for updating the category labels:
  • True if the labels are automatically refreshed,
  • False otherwise.
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window, page or report editor.
Android Only Chart controls are available.
PHP Only interactive Chart controls are available.

Defining the mode to refresh the category labels Hide the details

grAutoRefreshCategoryLabel(<Chart name> , <Automatic refresh>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window, page or report editor.
Android Only Chart controls are available.
PHP Only interactive Chart controls are available.
<Automatic refresh>: Boolean
  • True for an automatic refresh,
  • False otherwise.
Remarks
  • If the category labels are in automatic mode, the category labels will be automatically recalculated during the next call to grDraw.
  • If the category labels are not in automatic mode, the category labels will be recalculated during the next call to grSourceCategoryLabel.
Component: wd300grf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help