Hi,
I have used similar implementation for plotting chart using ESP8266 - but i have an issue pertaining to chart flickering while doing an update.
Is there a way to remove this flickering effect?
ESP8266 data logging with real time graphs | Circuits4you.com
function getData() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
//Push the data in array
var time = new Date().toLocaleTimeString();
var txt = this.responseText;
var obj = JSON.parse(txt);
myChart.data.labels.push(time);
myChart.data.datasets[0].data.push(obj.temp1)
myChart.data.datasets[1].data.push(obj.temp2)
myChart.data.datasets[2].data.push(obj.temp3)
myChart.update();
}
};
xhttp.open("GET", "readTemp", true);
xhttp.send();
shared the working solution