PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 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
Example
IF CHART_MyColumnChart.OverlayChart(CHART_MyLine) = True THEN
Info("The charts are overlaid")
END
CHART_MyColumnChart.Draw()
Syntax
<Result> = <Destination Spreadsheet control>.OverlayChart(<Source Chart control>)
<Result>: Boolean
  • True if the charts are superimposed,
  • False otherwise. To find out the error details, 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 (with quotes)
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)
Remarks
  • The chart overlay defined by <Chart>.OverlayChart will be taken into account during the next call to <Chart>.Draw.
  • Versions 20 and later
    Caution: <Chart>.OverlayChart does not manage the crosshair of the different stacked charts.
    New in version 20
    Caution: <Chart>.OverlayChart does not manage the crosshair of the different stacked charts.
    Caution: <Chart>.OverlayChart does not manage the crosshair of the different stacked charts.
Component : wd240grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment