MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / drawChart

Function drawChart

telemetry-dashboard/public/app.js:295–300  ·  view source on GitHub ↗
(section, panel, config)

Source from the content-addressed store, hash-verified

293}
294
295function drawChart(section, panel, config) {
296 const canvas = $(section, 'canvas');
297 const existing = charts.get(panel.id);
298 if (existing) existing.destroy();
299 charts.set(panel.id, new Chart(canvas, config));
300}
301
302async function drawPanel(panel, request, token) {
303 const section = document.getElementById(`panel-${panel.id}`);

Callers 1

drawPanelFunction · 0.85

Calls 4

$Function · 0.85
getMethod · 0.65
destroyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected