ChartEntryModelProducer
A ChartModelProducer implementation that generates ChartEntryModel instances.
Parameters
the initial data set (list of series).
the CoroutineDispatcher to be used for update handling.
See also
Constructors
Functions
Returns the ChartEntryModel or, if no ChartEntryModel is available, null
.
Checks if an update listener with the given key is registered.
Registers an update listener associated with a key. cancelAnimation and startAnimation are called after a data update is requested, with cancelAnimation being called before the update starts being processed (at which point transformModel should stop being used), and startAnimation being called once the update has been processed (at which point it’s safe to use transformModel). updateChartValues updates the chart’s ChartValues and returns its ChartValuesProvider. onModelCreated is called when a new Model has been generated.
Registers an update listener associated with a key. cancelAnimation and startAnimation are called after a data update is requested, with cancelAnimation being called before the update starts being processed, and startAnimation being called once the update has been processed. updateChartValues updates the chart’s ChartValues and returns its ChartValuesProvider. onModelCreated is called when a new Model has been generated.
Requests that the data set be updated to the provided one. If the update is accepted, true
is returned. If the update is rejected, which occurs when there’s already an update in progress, false
is returned. For suspending behavior, use setEntriesSuspending. updateExtras allows for adding auxiliary data, which can later be retrieved via ChartEntryModel.extraStore.
Updates the data set. Unlike setEntries, this function suspends the current coroutine and waits until an update can be run, meaning the update cannot be rejected. The returned Deferred implementation is marked as completed once the update has been processed. updateExtras allows for adding auxiliary data, which can later be retrieved via ChartEntryModel.extraStore.
Creates an intermediate ChartEntryModel for difference animations. fraction is the balance between the initial and target ChartEntryModels.
Unregisters the update listener associated with the given key.