For #15. Attempt to fix it, but I'm unsure as to whether it's worked or not.

pull/26/head
Starbeamrainbowlabs 4 years ago
parent cd71310154
commit 28323e86d9
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 4
      client_src/js/DeviceReadingDisplay.mjs

@ -229,7 +229,7 @@ class DeviceReadingDisplay {
data: {
// We need to define an initial dataset here because otherwise
// Chart.js gets confused 'cause it has nothing to animate from
labels: [],
// labels: [],
datasets: []
},
options: {
@ -353,7 +353,7 @@ class DeviceReadingDisplay {
this.chart.data.datasets.push(new_data_obj);
// Update the x axis labels
this.chart.data.labels = new_data_obj.data.map((point) => point.t);
// this.chart.data.labels = new_data_obj.data.map((point) => point.t);
// Update the chart
this.chart.update();

Loading…
Cancel
Save