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

Method reset

src/core/core.controller.js:474–477  ·  view source on GitHub ↗

* Resets the chart back to its state before the initial animation

()

Source from the content-addressed store, hash-verified

472 * Resets the chart back to its state before the initial animation
473 */
474 reset() {
475 this._resetElements();
476 this.notifyPlugins('reset');
477 }
478
479 update(mode) {
480 const config = this.config;

Callers

nothing calls this directly

Calls 2

_resetElementsMethod · 0.95
notifyPluginsMethod · 0.95

Tested by

no test coverage detected