WebsiteLive demosGuidesSource
  • Preparing search index...
  • The search index is not available
OpenAlgo Charts API - v2.3.2
  • OpenAlgo Charts API
  • index
  • addComparison

Function addComparison

  • addComparison(
        chart: ComparisonChartHost,
        options: ComparisonOptions,
    ): ComparisonHandle
  • Put an instrument on the chart next to the primary one:

    const bn = addComparison(chart, { symbol: 'BANKNIFTY', bars, color: '#f0b90b' });
    

    The pane switches to percentage while any comparison is on it and goes back to the mode it had when the last one leaves.

    Parameters

    • chart: ComparisonChartHost
    • options: ComparisonOptions

    Returns ComparisonHandle

    • Defined in src/compare/controller.ts:442

Settings

Member Visibility
WebsiteLive demosGuidesSource
OpenAlgo Charts API - v2.3.2
  • Loading...

Generated using TypeDoc

Build your next market experience.Explore live demos →API definitions generated from the current source with every website deployment.