Transaction
Handles data updates. An initially empty list of data sets is created and can be updated via the class’s functions. Each data set corresponds to a single nested Chart.
Functions
Adds a data set comprising the provided series.
Adds a data set.
Requests a data update. 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 commitSuspending.
Runs a data update. Unlike commit, 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.
Replaces the data set at the specified index (Pair.first) with the provided data set (Pair.second).
Replaces the data set at the specified index with the provided data set.
Allows for adding auxiliary values, which can later be retrieved via ChartEntryModel.extraStore.