This commit is contained in:
Bluepr1nt
2017-04-04 15:05:04 +02:00
parent b830c80aff
commit c7e8d48996
4 changed files with 7 additions and 6 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -248,8 +248,8 @@ var LineChartComponent = (function () {
.get()
.subscribe(function (res) {
console.log(res);
_this.lineChartData[0].data = res.data;
console.log(_this.lineChartData[0]);
var newLine = { data: res.data, label: res.label };
_this.lineChartData[0] = newLine;
});
console.log("Init");
};
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -46,8 +46,9 @@ export class LineChartComponent implements OnInit {
.get()
.subscribe(res => {
console.log(res);
this.lineChartData[0].data = res.data;
console.log(this.lineChartData[0]);
const newLine = {data: res.data, label: res.label};
this.lineChartData[0] = newLine;
});
console.log("Init");