|
@@ -139,14 +139,14 @@
|
|
|
this.lineChartdata = [];
|
|
|
this.uchartTime = [];
|
|
|
this.lineChartdata = lineChartdata;
|
|
|
- console.log(this.lineChartdata)
|
|
|
+ //console.log(this.lineChartdata)
|
|
|
let _this = this;
|
|
|
for(let i=0;i<_this.lineChartdata.length;i++){
|
|
|
let time = new Date(
|
|
|
_this.lineChartdata[i].time * 1000).Format('hh');
|
|
|
_this.uchartTime.push(time);
|
|
|
}
|
|
|
- console.log(_this.uchartTime)
|
|
|
+ // console.log(_this.uchartTime)
|
|
|
_this.getLinAcharts();
|
|
|
},
|
|
|
getLinAcharts: function() {
|
|
@@ -209,7 +209,7 @@
|
|
|
LineC.series[1].data = [];
|
|
|
LineC.series[2].data = [];
|
|
|
LineC.series[3].data = [];
|
|
|
- console.log( _this.lineChartdata)
|
|
|
+ //console.log( _this.lineChartdata)
|
|
|
for (var i = 0; i < _this.lineChartdata.length; i++) {
|
|
|
LineC.categories.push(_this.uchartTime[i]);
|
|
|
// console.log(LineC.categories)
|
|
@@ -309,11 +309,16 @@
|
|
|
});
|
|
|
},
|
|
|
touchLineB3(e) {
|
|
|
- this.plusDrawerList.canvas.showToolTip(e, {
|
|
|
- format: function(item, category) {
|
|
|
- return category + ' ' + item.name + ':' + item.data;
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
+ if(this.plusDrawerList.canvas.showToolTip!=undefined)
|
|
|
+ {
|
|
|
+ this.plusDrawerList.canvas.showToolTip(e, {
|
|
|
+ format: function(item, category) {
|
|
|
+ return category + ' ' + item.name + ':' + item.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
}
|