1π
β
The input fields should assign to each dataset respectively.
function updateChart2() {
chart2.data.datasets[0].data = [data1a.value];
chart2.data.datasets[1].data = [data2a.value];
chart2.update();
}
Source:stackexchange.com