ChartValues

interface ChartValues

Where Charts get their data from.

By default, minX, maxX, minY, and maxY are equal to ChartEntryModel.minX, ChartEntryModel.maxX, ChartEntryModel.minY, and ChartEntryModel.maxY, respectively, but you can use AxisValuesOverrider to override these values.

Inheritors

Properties

Link copied to clipboard

The source of the associated Chart’s entries. The ChartEntryModel defines the default values for minX, maxX, minY, and maxY.

Link copied to clipboard
open val lengthX: Float

The difference between maxX and minX.

Link copied to clipboard
open val lengthY: Float

The difference between maxY and minY.

Link copied to clipboard
abstract val maxX: Float

The maximum value displayed on the x-axis. By default, this is equal to ChartEntryModel.maxX (the ChartEntryModel instance being chartEntryModel), but you can use AxisValuesOverrider to override this value.

Link copied to clipboard
abstract val maxY: Float

The maximum value displayed on the y-axis. By default, this is equal to ChartEntryModel.maxY (the ChartEntryModel instance being chartEntryModel), but you can use AxisValuesOverrider to override this value.

Link copied to clipboard
abstract val minX: Float

The minimum value displayed on the x-axis. By default, this is equal to ChartEntryModel.minX (the ChartEntryModel instance being chartEntryModel), but you can use AxisValuesOverrider to override this value.

Link copied to clipboard
abstract val minY: Float

The minimum value displayed on the y-axis. By default, this is equal to ChartEntryModel.minY (the ChartEntryModel instance being chartEntryModel), but you can use AxisValuesOverrider to override this value.

Link copied to clipboard
open val stepX: Float

The difference between the x values of neighboring major entries.

Link copied to clipboard
abstract val xStep: Float

The difference between the x values of neighboring major entries.

Functions

Link copied to clipboard

Returns the maximum number of major entries that can be present, based on minX, maxX, and xStep.