Skip to content

charton API


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

Function: openSeriesStyleSettings() ​

openSeriesStyleSettings(chart, host, series): FormDialog | null

Defined in: ui/src/series-settings.ts:165

Open the style panel of series (see seriesSettingsForm) in host, docked to its right edge so the chart stays in view. Edits apply live; Ok keeps them, and Cancel, Escape, the close button and close() put the series back as it was. A compared symbol's placement changes through ComparedSymbol.setMode, so it keeps its series, bars and handle. The panel closes if the series is removed or the chart destroyed. Null when the series has nothing to edit.

Parameters ​

chart ​

Chart

host ​

HTMLElement

series ​

Series

Returns ​

FormDialog | null