Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Remark: The first chart must be a Column chart (clustered or stacked column chart), a Stock chart (MinMax or Candlestick) or a Scatter chart while the second chart must be a Line chart
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
IF CHART_MyColumnChart.OverlayChart(CHART_MyLine) = True THEN
Info("The charts are overlaid")
<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 chart will be taken into account as data source: its title and its parameters will be ignored. 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)
  • The chart overlay defined by <Chart>.OverlayChart will be taken into account during the next call to <Chart>.Draw.
  • Caution: <Chart>.OverlayChart does not handle the crosshairs of the different overlaying charts.
Component: wd290grf.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help