ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
<Chart>.OverlayChart (Function)
In french: <Graphe>.SuperposeGraphe
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 GRF_MonHistogramme.SuperposeGraphe(GRF_MaCourbe) = True THEN
	Info("Les deux graphes sont superposés")
END
GRF_MonHistogramme.Dessine()
Syntax
<Result> = <Destination Spreadsheet control>.OverlayChart(<Source Chart control>)
<Result>: Boolean
  • True if the charts are overlaid,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Destination Spreadsheet control>: Control name
Name of the Chart control that will display the two charts at the same time. This Chart control contains the first chart (Column, Stock or Scatter chart).
<Source Chart control>: Character string
Name of the Chart control that will be displayed in the destination chart. This chart must be a Line chart. It will overlay the <Destination Chart control>. 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 control> (otherwise, the charts overwrite each other)
Remarks
  • The chart overlay defined by <Chart>.OverlayChart will be taken into account during the next call to <Chart>.Draw.
  • Warning: The <Chart>.OverlayChart function does not manage the crosshairs of different superimposed graphs..
Component: wd300grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help