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:
A main ChartValues instance, which is used by all components by default. It’s accessible with a null key and always available in the drawing phase.
A ChartValues instance for AxisRenderers with AxisPosition.Vertical.Start. It’s available when the Chart is configured to use AxisPosition.Vertical.Start as a key to update and retrieve its ChartValues.
A ChartValues instance for AxisRenderers with AxisPosition.Vertical.End. It’s available when the Chart is configured to use AxisPosition.Vertical.End as a key to update and retrieve its ChartValues.
See also
Functions
Returns the ChartValues instance associated with the specified AxisPosition.Vertical subclass. If axisPosition is null
, the chart’s main ChartValues instance is returned.
Resets the values stored in each of the ChartValues instances in the chartValues map.
Creates and returns a ChartValuesProvider implementation with this ChartValuesManager’s ChartValues instances.
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.