setEntries

fun setEntries(entries: List<List<ChartEntry>>, updateExtras: (MutableExtraStore) -> Unit = {}): Boolean
fun setEntries(vararg entries: List<ChartEntry>, updateExtras: (MutableExtraStore) -> Unit = {}): Boolean

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.