Package-level declarations

Types

Link copied to clipboard
interface ChartEntry

The base for a single chart entry rendered by Chart subclasses. It holds information about the location of the chart entry on the x-axis and y-axis.

Link copied to clipboard
interface ChartEntryModel

Contains the data for a Chart. Pre-calculates values needed for the rendering of the Chart.

Link copied to clipboard
class ChartEntryModelProducer(entryCollections: List<List<ChartEntry>>? = null, dispatcher: CoroutineDispatcher = Dispatchers.Default) : ChartModelProducer<ChartEntryModel>

A ChartModelProducer implementation that generates ChartEntryModel instances.

Link copied to clipboard

Generates ChartEntryModels and handles difference animations.

Link copied to clipboard
data class FloatEntry(val x: Float, val y: Float) : ChartEntry

The default implementation of ChartEntry.

Functions

Link copied to clipboard
fun entriesOf(vararg yValues: Number): List<FloatEntry>

Creates a List of FloatEntry instances out of an array of y-axis values.

fun entriesOf(vararg pairs: Pair<Number, Number>): List<FloatEntry>

Creates a List of FloatEntry instances. Each of the provided Pairs corresponds to a single FloatEntry, with the first element of the Pair being the FloatEntry’s x coordinate, and the second element of the Pair being the FloatEntry’s y coordinate.

Link copied to clipboard
fun entryModelOf(vararg values: Number): ChartEntryModel

Creates a ChartEntryModel out of the provided array of numbers, treating each number’s index as the x value, and the number itself as the y value.

Creates a ChartEntryModel out of the given pairs of numbers, treating the first number in each pair as the x value, and the second one as the y value.

Creates a ChartEntryModel out of the provided list of list of FloatEntry instances.

Link copied to clipboard

Creates a FloatEntry instance.