|
@@ -317,64 +317,88 @@
|
|
}, 0);
|
|
}, 0);
|
|
},
|
|
},
|
|
touchLine1(e) {
|
|
touchLine1(e) {
|
|
- canvaColumn1.scrollStart(e);
|
|
|
|
|
|
+ if(canvaColumn1){
|
|
|
|
+ canvaColumn1.scrollStart(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
moveLine1(e) {
|
|
moveLine1(e) {
|
|
- canvaColumn1.scroll(e);
|
|
|
|
|
|
+ if(canvaColumn1){
|
|
|
|
+ canvaColumn1.scroll(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchEndLine1(e) {
|
|
touchEndLine1(e) {
|
|
- canvaColumn1.scrollEnd(e);
|
|
|
|
- //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
- canvaColumn1.showToolTip(e, {
|
|
|
|
- format: function(item, category) {
|
|
|
|
- return category + ' ' + item.name + ':' + item.data
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if(canvaColumn1){
|
|
|
|
+ canvaColumn1.scrollEnd(e);
|
|
|
|
+ //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
+ canvaColumn1.showToolTip(e, {
|
|
|
|
+ format: function(item, category) {
|
|
|
|
+ return category + ' ' + item.name + ':' + item.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchLine2(e) {
|
|
touchLine2(e) {
|
|
- canvaColumn2.scrollStart(e);
|
|
|
|
|
|
+ if(canvaColumn2){
|
|
|
|
+ canvaColumn2.scrollStart(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
moveLine2(e) {
|
|
moveLine2(e) {
|
|
- canvaColumn2.scroll(e);
|
|
|
|
|
|
+ if(canvaColumn2){
|
|
|
|
+ canvaColumn2.scroll(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchEndLine2(e) {
|
|
touchEndLine2(e) {
|
|
- canvaColumn2.scrollEnd(e);
|
|
|
|
- //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
- canvaColumn2.showToolTip(e, {
|
|
|
|
- format: function(item, category) {
|
|
|
|
- return category + ' ' + item.name + ':' + item.data
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if(canvaColumn2){
|
|
|
|
+ canvaColumn2.scrollEnd(e);
|
|
|
|
+ //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
+ canvaColumn2.showToolTip(e, {
|
|
|
|
+ format: function(item, category) {
|
|
|
|
+ return category + ' ' + item.name + ':' + item.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchLine3(e) {
|
|
touchLine3(e) {
|
|
- canvaColumn3.scrollStart(e);
|
|
|
|
|
|
+ if(canvaColumn3){
|
|
|
|
+ canvaColumn3.scrollStart(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
moveLine3(e) {
|
|
moveLine3(e) {
|
|
- canvaColumn3.scroll(e);
|
|
|
|
|
|
+ if(canvaColumn3){
|
|
|
|
+ canvaColumn3.scroll(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchEndLine3(e) {
|
|
touchEndLine3(e) {
|
|
- canvaColumn3.scrollEnd(e);
|
|
|
|
- //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
- canvaColumn3.showToolTip(e, {
|
|
|
|
- format: function(item, category) {
|
|
|
|
- return category + ' ' + item.name + ':' + item.data
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if(canvaColumn3){
|
|
|
|
+ canvaColumn3.scrollEnd(e);
|
|
|
|
+ //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
+ canvaColumn3.showToolTip(e, {
|
|
|
|
+ format: function(item, category) {
|
|
|
|
+ return category + ' ' + item.name + ':' + item.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchLine4(e) {
|
|
touchLine4(e) {
|
|
- canvaColumn4.scrollStart(e);
|
|
|
|
|
|
+ if(canvaColumn4){
|
|
|
|
+ canvaColumn4.scrollStart(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
moveLine4(e) {
|
|
moveLine4(e) {
|
|
- canvaColumn4.scroll(e);
|
|
|
|
|
|
+ if(canvaColumn4){
|
|
|
|
+ canvaColumn4.scroll(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
touchEndLine4(e) {
|
|
touchEndLine4(e) {
|
|
- canvaColumn4.scrollEnd(e);
|
|
|
|
- //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
- canvaColumn4.showToolTip(e, {
|
|
|
|
- format: function(item, category) {
|
|
|
|
- return category + ' ' + item.name + ':' + item.data
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if(canvaColumn4){
|
|
|
|
+ canvaColumn4.scrollEnd(e);
|
|
|
|
+ //下面是toolTip事件,如果滚动后不需要显示,可不填写
|
|
|
|
+ canvaColumn4.showToolTip(e, {
|
|
|
|
+ format: function(item, category) {
|
|
|
|
+ return category + ' ' + item.name + ':' + item.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|