StackedAreaPlotDataAdapter

Adapts data for use in a StackedAreaPlot where the input data consists of a List of x-axis coordinates and multiple Lists of Float y-axis coordinates, one per line, where the values are before stacking. This adapter will sum y-axis values to compute each line's height in the StackedAreaPlot. The size of xData and all series in yData must be equal.

Constructors

Link copied to clipboard
constructor(xData: List<X>, yData: List<List<Float>>)

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard

Calculates an ClosedFloatingPointRange that can be used with a DoubleLinearAxisModel based on the min/max values of the provided list of Doubles. If the list is empty, returns a range of 0..1.

@JvmName(name = "autoScaleFloatRange")
fun List<Float>.autoScaleRange(): ClosedFloatingPointRange<Float>

Calculates an ClosedFloatingPointRange that can be used with a FloatLinearAxisModel based on the min/max values of the provided list of Floats. If the list is empty, returns a range of 0..1.

Calculates an IntRange that can be used with a IntLinearAxisModel based on the min/max values of the provided list of Ints. If the list is empty, returns a range of 0..1.

Calculates a LongRange that can be used with a LongLinearAxisModel based on the min/max values of the provided list of Longs. If the list is empty, returns a range of 0..1.

Link copied to clipboard

Calculates a ClosedFloatingPointRange that can be used with a LinearAxisModel based on the min/max X values of the provided list of Points.

Link copied to clipboard

Calculates a ClosedFloatingPointRange that can be used with a LinearAxisModel based on the min/max Y values of the provided list of Points.

Link copied to clipboard
open operator override fun contains(element: StackedAreaPlotEntry<X, Float>): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<StackedAreaPlotEntry<X, Float>>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): StackedAreaPlotEntry<X, Float>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun indexOf(element: StackedAreaPlotEntry<X, Float>): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<StackedAreaPlotEntry<X, Float>>
Link copied to clipboard
open override fun lastIndexOf(element: StackedAreaPlotEntry<X, Float>): Int
Link copied to clipboard
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<StackedAreaPlotEntry<X, Float>>
Link copied to clipboard
open override fun toString(): String