A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
How can I update my chart?
-
@sdetweil I have really really last question I changed my socketNotificationReceived like this
socketNotificationReceived: function(notification, payload) { if (notification === "TEXT_RESULT") { this.textDataRecived = payload; this.loaded = true; } if(count < 2) { this.updateDom(); count = count + 1; } else { this.myChart.data.datasets.data = this.textDataRecived console.log(this.myChart.data.datasets.data) this.myChart.update(); } },
and console.log(this.myChart.data.datasets.data) successfully print this.textDataRecived but my chart is not updated in the screen why???
-
@doridol i do not know anything about the chart.update() method… I don’t use it.
-
@sdetweil okay thanks for you a lot of help:beaming_face_with_smiling_eyes:
-
@doridol i use destroy() and then build another
-
@sdetweil I finally update my chart with this.myChart.update()!!! it is all for your help now I can get sleep…