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
: A specific configuration is required to use this function in Linux. For more details, see The charts
IF grOverlayChart(CHART_MyColumnChart, CHART_Line) = True THEN
Info("The charts are overlaid")
<Result> = grOverlayChart(<Destination chart> , <Source chart>)
- 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).
- 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.