Skip to content

charton API


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

Function: toggleVisibility() ​

toggleVisibility(target, options?): ToolbarItemLayout & ToolbarItemWatch & ToolbarItemText & object

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

Button that shows or hides target; it is pressed while the target is visible. The state follows changes made elsewhere (a legend's eye button, a settings dialog, the rail's hide-all button, chart.setPaneHidden). A pane target cannot be the main pane, which never hides.

Parameters ​

target ​

VisibilityTarget

options? ​

ToggleVisibilityOptions = {}

Returns ​