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
+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");