testtt
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+3
-1
@@ -248,8 +248,10 @@ var LineChartComponent = (function () {
|
||||
.get()
|
||||
.subscribe(function (res) {
|
||||
console.log(res);
|
||||
var newDataSet = [];
|
||||
var newLine = { data: res.data, label: res.label };
|
||||
_this.lineChartData[0] = newLine;
|
||||
newDataSet.push(newLine);
|
||||
_this.lineChartData = newDataSet;
|
||||
});
|
||||
console.log("Init");
|
||||
};
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -46,9 +46,10 @@ export class LineChartComponent implements OnInit {
|
||||
.get()
|
||||
.subscribe(res => {
|
||||
console.log(res);
|
||||
const newDataSet = [];
|
||||
const newLine = {data: res.data, label: res.label};
|
||||
this.lineChartData[0] = newLine;
|
||||
|
||||
newDataSet.push(newLine);
|
||||
this.lineChartData = newDataSet;
|
||||
});
|
||||
|
||||
console.log("Init");
|
||||
|
||||
Reference in New Issue
Block a user