ChartValuesManager

Manages the ChartValues used by a chart. There may be many ChartValues, but all of them have the same ChartValues.minX and ChartValues.maxX values. The following ChartValues instances exist in a chart:

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun getChartValues(axisPosition: AxisPosition.Vertical?): ChartValues

Returns the ChartValues instance associated with the specified AxisPosition.Vertical subclass. If axisPosition is null, the chart’s main ChartValues instance is returned.

Link copied to clipboard

Resets the values stored in each of the ChartValues instances in the chartValues map.

Link copied to clipboard

Creates and returns a ChartValuesProvider implementation with this ChartValuesManager’s ChartValues instances.

Link copied to clipboard
fun tryUpdate(minX: Float, maxX: Float, minY: Float, maxY: Float, xStep: Float, chartEntryModel: ChartEntryModel, axisPosition: AxisPosition.Vertical? = null)

Attempts to update the stored values to the provided values. MutableChartValues.minX and MutableChartValues.minY can be updated to a lower value. MutableChartValues.maxX and MutableChartValues.maxY can be updated to a higher value. MutableChartValues.chartEntryModel and MutableChartValues.xStep are always updated. If axisPosition is null, only the main ChartValues are updated. Otherwise, both the main ChartValues and the ChartValues associated with the given axisPosition are updated.