ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
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.
Example
IF grOverlayChart(CHART_MyColumnChart, CHART_Line) = True THEN
Info("The charts are overlaid")
END
grDraw(CHART_MyColumnChart)
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 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> (otherwise, the charts overwrite each other).
Remarks
  • The chart overlay defined by grOverlayChart will be taken into account during the next call to grDraw.
  • Caution: grOverlayChart does not handle the crosshairs of the different overlaying charts.
Component: wd290grf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help