Lines

interface Lines

Manager for the collection of lines in a chart. Provides CRUD operations and reactive state for line series.

Properties

Link copied to clipboard
abstract val state: Live<LinesState>

Reactive state containing all line managers.

Functions

Link copied to clipboard
abstract fun all(): List<LineManager>

Get all line managers (snapshot).

Link copied to clipboard
abstract fun append(title: String = "", id: String? = null, description: String? = null): LineManager

Append a new line and return its manager.

Link copied to clipboard
abstract fun find(id: String): LineManager?

Find a line manager by id.

Link copied to clipboard
abstract fun remove(id: String): Line?

Remove a line by id and return the removed Line (if any).

Link copied to clipboard
abstract fun replaceAll(lines: List<Line>?)

Replace all lines with the given list.