MCPcopy
hub / github.com/chartjs/Chart.js / _resetElements

Method _resetElements

src/core/core.controller.js:461–465  ·  src/core/core.controller.js::Chart._resetElements

* Reset the elements of all datasets * @private

()

Source from the content-addressed store, hash-verified

459 * @private
460 */
461 _resetElements() {
462 each(this.data.datasets, (dataset, datasetIndex) => {
463 this.getDatasetMeta(datasetIndex).controller.reset();
464 }, this);
465 }
466
467 /**
468 * Resets the chart back to its state before the initial animation

Callers 1

resetMethod · 0.95

Calls 3

getDatasetMetaMethod · 0.95
eachFunction · 0.85
resetMethod · 0.65

Tested by

no test coverage detected