Skip to content

setStyles(styles) โ€‹

setStyles set the chart style.

Reference โ€‹

typescript
(styles: string | Styles) => void

Parameters โ€‹

  • styles Style, which can be a style name registered by klinecharts.registerStyles, or Styles. For details about Styles, see Styles. Incremental values โ€‹โ€‹are supported.

Returns โ€‹

setStyles returns undefined .

Usage โ€‹

Basic usage โ€‹

Built-in templates โ€‹

Custom templates โ€‹