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

Method start

src/core/core.animator.js:163–172  ·  view source on GitHub ↗

* Start animating (all charts) * @param {Chart} chart

(chart)

Source from the content-addressed store, hash-verified

161 * @param {Chart} chart
162 */
163 start(chart) {
164 const anims = this._charts.get(chart);
165 if (!anims) {
166 return;
167 }
168 anims.running = true;
169 anims.start = Date.now();
170 anims.duration = anims.items.reduce((acc, cur) => Math.max(acc, cur._duration), 0);
171 this._refresh();
172 }
173
174 running(chart) {
175 if (!this._running) {

Callers

nothing calls this directly

Calls 2

_refreshMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected