MCPcopy Create free account
hub / github.com/codemistic/Web-Development / updateGraph

Function updateGraph

chart/js/custom.js:188–198  ·  view source on GitHub ↗
(chart, label, color, border, data)

Source from the content-addressed store, hash-verified

186 dataset
187*/
188function updateGraph(chart, label, color, border, data) {
189 chart.data.datasets.pop();
190 chart.data.labels = x_axis;
191 chart.data.datasets.push({
192 label: label,
193 data: data,
194 backgroundColor: color,
195 borderColor: border
196 });
197 chart.update();
198}
199
200/*
201 Function to add or remove data

Callers 1

custom.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected