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

This commit is contained in:
Starbeamrainbowlabs 2019-02-26 19:09:00 +00:00
parent cd71310154
commit 28323e86d9
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 2 deletions

View File

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