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

Function getChart

src/core/core.controller.js:67–70  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

65
66const instances = {};
67const getChart = (key) => {
68 const canvas = getCanvas(key);
69 return Object.values(instances).filter((c) => c.canvas === canvas).pop();
70};
71
72function moveNumericKeys(obj, start, move) {
73 const keys = Object.keys(obj);

Callers 1

constructorMethod · 0.70

Calls 1

getCanvasFunction · 0.85

Tested by

no test coverage detected