ChartEntryModel

interface ChartEntryModel

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

The Chart may override minX, maxX, minY, or maxY via AxisValuesOverrider. These overrides will be used in the Chart’s ChartValues instance.

It’s recommended to delegate the creation of ChartEntryModel to ChartEntryModelProducer or ComposedChartEntryModelProducer.

See also

Inheritors

Properties

Link copied to clipboard
abstract val entries: List<List<ChartEntry>>

The chart entries (ChartEntry instances). Multiple lists of ChartEntry instances can be provided. In such a case, entries will be associated by index, and the Chart will stack or group them if it’s a ColumnChart, and display multiple lines if it’s a LineChart.

Link copied to clipboard

Houses auxiliary data, including DrawingModels.

Link copied to clipboard
open val id: Int

The ChartEntryModel’s identifier. Different ChartEntryModel instances don’t necessarily have different identifiers. ChartEntryModelProducer and ComposedChartEntryModelProducer use the same id for all ChartEntryModel instances created for the purpose of running a single difference animation. This enables charts to differentiate between data set changes and difference animations.

Link copied to clipboard
abstract val maxX: Float

The maximum x-axis value from among all entries.

Link copied to clipboard
abstract val maxY: Float

The maximum y-axis value from among all entries.

Link copied to clipboard
abstract val minX: Float

The minimum x-axis value from among all entries.

Link copied to clipboard
abstract val minY: Float

The minimum y-axis value from among all entries.

Link copied to clipboard
abstract val stackedNegativeY: Float

The minimum cumulated y-axis value from among all sets of entries associated by ChartEntry.x.

Link copied to clipboard
abstract val stackedPositiveY: Float

The maximum cumulated y-axis value from among all sets of entries associated by ChartEntry.x.

Link copied to clipboard
abstract val xGcd: Float

The greatest common divisor of the x values.

Functions

Link copied to clipboard

Returns an immutable copy of this ChartEntryModel.