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

Method _resetElements

src/core/core.controller.js:471–475  ·  view source on GitHub ↗

* Reset the elements of all datasets * @private

()

Source from the content-addressed store, hash-verified

469 * @private
470 */
471 _resetElements() {
472 each(this.data.datasets, (dataset, datasetIndex) => {
473 this.getDatasetMeta(datasetIndex).controller.reset();
474 }, this);
475 }
476
477 /**
478 * 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