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
grOverlayChart (Function)
In french: grSuperposeGraphe
Used to display two different types of charts in the same chart. The two charts are overlaid.
Note The first graph must be a column chart (stacked, clustered, etc.), Stock chart (MinMax, candlestick, etc.) or Scatter chart, and the second graph must be a curve.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
Example
IF grOverlayChart(GRF_MonHistogramme, GRF_Courbe) = True THEN
	Info("Les deux graphes sont superposés")
END
grDraw(GRF_MonHistogramme)
Syntax
<Result> = grOverlayChart(<Destination chart> , <Source chart>)
<Result>: Boolean
  • True if the charts are overlaid,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Destination chart>: Character string
Name of the chart that will be used to display the two charts. This chart contains the first chart (Bar chart, Stock chart or Scatter chart).
<Source chart>: Character string
Name of the chart that will be displayed in the destination chart. This chart must be a Line chart. It will overlay the <Destination chart>. This graph is taken into account as a data source: its title and parameters are not taken into account.. Only the information regarding the legend will be kept.
The link between the two charts is deleted if this parameter corresponds to an empty string ("").
This parameter must correspond to a chart different from <Destination chart> (otherwise, the charts overwrite each other).
Remarks
  • The chart overlay defined by grOverlayChart will be taken into account during the next call to grDraw.
  • Warning: The grOverlayChart function does not manage the crosshairs of different superimposed graphs..
Component: wd300grf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help