(chart, label, color, border, data)
| 203 | */ |
| 204 | |
| 205 | function addData(chart, label, color, border, data) { |
| 206 | chart.data.labels.push(label); |
| 207 | chart.data.datasets[0].data.push(data); |
| 208 | chart.data.datasets[0].backgroundColor.push(color); |
| 209 | chart.data.datasets[0].borderColor.push(border); |
| 210 | chart.update(); |
| 211 | // background_color.push(color); |
| 212 | // border_color.push(border); |
| 213 | // x_axis.push(label); |
| 214 | // updated_data_value.push(data); |
| 215 | // data_value.push(data); |
| 216 | } |
| 217 | |
| 218 | function removeData(chart) { |
| 219 | chart.data.labels.pop(); |
nothing calls this directly
no outgoing calls
no test coverage detected