charton API / @chart-on/core / index / ChartSettingField
Interface: ChartSettingField
Defined in: packages/core/src/chart-settings.ts:32
One option. path is a dotted path into the chart options (legend.mode, crosshair.vertical.visible, theme.up, features.legend), into the main series' options with a series. prefix (series.wicks), or into the main pane's price scale settings with a priceScale. prefix (priceScale.lockPriceToBarRatio).
Properties
choices?
optionalchoices?: readonlyChartSettingChoice[]
Defined in: packages/core/src/chart-settings.ts:39
The values a select offers.
hint?
optionalhint?:string
Defined in: packages/core/src/chart-settings.ts:37
Help text under the control.
kind
kind:
ChartSettingKind
Defined in: packages/core/src/chart-settings.ts:35
label
label:
string
Defined in: packages/core/src/chart-settings.ts:34
max?
optionalmax?:number
Defined in: packages/core/src/chart-settings.ts:41
min?
optionalmin?:number
Defined in: packages/core/src/chart-settings.ts:40
path
path:
string
Defined in: packages/core/src/chart-settings.ts:33
plugin?
optionalplugin?:string
Defined in: packages/core/src/chart-settings.ts:50
Show the field only on a chart with this plugin installed (its ChartPlugin.name), whose option it sets.
step?
optionalstep?:number
Defined in: packages/core/src/chart-settings.ts:42
unit?
optionalunit?:string
Defined in: packages/core/src/chart-settings.ts:44
Shown after a slider's value, e.g. %.
unset?
optionalunset?: {path:string; } | {value:unknown; }
Defined in: packages/core/src/chart-settings.ts:46
What the option means while it is not set: another setting's value, or a fixed value.
when?
optionalwhen?:object
Defined in: packages/core/src/chart-settings.ts:48
Show the field only while the setting at path equals equals.
equals
equals:
unknown
path
path:
string