Try to update chart labels

This commit is contained in:
2017-04-05 09:56:46 +02:00
parent 3ee6fd6ac4
commit 7088ac29fc
4 changed files with 8 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -343,7 +343,9 @@ var LineChartComponent = (function () {
var newLine = { data: res.lines.data, label: res.lines.label };
newDataSet.push(newLine);
_this.lineChartData = newDataSet;
_this.lineChartLabels = res.labels.data.slice();
var newDataSet2 = [];
newDataSet2.push(res.labels.data.slice());
_this.lineChartLabels = newDataSet2;
});
console.log("Init");
};
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -57,7 +57,9 @@ export class LineChartComponent implements OnInit {
newDataSet.push(newLine);
this.lineChartData = newDataSet;
this.lineChartLabels = res.labels.data.slice();
const newDataSet2 = [];
newDataSet2.push(res.labels.data.slice());
this.lineChartLabels = newDataSet2;
});
console.log("Init");