Skip to content

charton API


charton API / @chart-on/ui / index / compare

Function: compare() ​

compare(pick, options?): ToolbarItemLayout & ToolbarItemWatch & ToolbarItemText & object

Defined in: ui/src/toolbar-presets.ts:591

Button in the analysis group that compares another symbol: pick names it (open a symbol search, say), then chart.compare plots it. Pressed while any symbol is compared; a symbol that is already compared, or a chart without a data source, shows a notification.

Parameters ​

pick ​

ComparePick

options? ​

ComparePresetOptions = {}

Returns ​