MCPcopy Create free account
hub / github.com/chartjs/Chart.js / _resetElements

Method _resetElements

src/core/core.controller.js:465–469  ·  view source on GitHub ↗

* Reset the elements of all datasets * @private

()

Source from the content-addressed store, hash-verified

463 * @private
464 */
465 _resetElements() {
466 each(this.data.datasets, (dataset, datasetIndex) => {
467 this.getDatasetMeta(datasetIndex).controller.reset();
468 }, this);
469 }
470
471 /**
472 * 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