ChartSeries

data class ChartSeries(val name: String? = null, val values: ImmutableList<Double>)(source)

A single named series of values within a ChartData.

Parameters

name

Optional display name, not a unique series identifier.

values

The series values. Mutating the supplied list after construction is safe but does not update this series; values are copied into an immutable list. Raw values retain Double precision; drawing coordinates can be normalized separately. Convert other numeric types or parse strings before constructing the series.

Constructors

Link copied to clipboard
constructor(name: String? = null, values: ImmutableList<Double>)
constructor(name: String? = null, values: List<Double>)

Convenience constructor accepting a mutable list of values.

Properties

Link copied to clipboard
val name: String?
Link copied to clipboard
val values: ImmutableList<Double>