You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/08 06:36:11 UTC

[GitHub] [echarts] vkjv commented on issue #7661: 4.0.2里当dataZoom打开并且series为空时,setOption notMerge抛出异常

vkjv commented on issue #7661:
URL: https://github.com/apache/echarts/issues/7661#issuecomment-792508291


   Hi, I also encountered the same issue. I tried setting datazoom options after series has been set. No use. Here is my option for dataZoom. 
   this.spec.dataZoom = [{
         type: 'inside',
         zoomOnMouseWheel: false,
         moveOnMouseMove: true,
         moveOnMouseWheel: false,
         preventDefaultMouseMove: false
       }];
   
   Below is the error that I am getting in browser console. 
   
   core.js:4127 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'getDataPercentWindow' of undefined
   TypeError: Cannot read property 'getDataPercentWindow' of undefined
       at dataZoomProcessor.js:96
       at Array.forEach (<anonymous>)
       at each (util.js:300)
       at ExtendedClass.eachComponent (Global.js:449)
       at Object.overallReset (dataZoomProcessor.js:92)
       at Task.overallTaskReset [as _reset] (Scheduler.js:453)
       at reset (task.js:232)
       at Task.push.../../node_modules/echarts/lib/stream/task.js.taskProto.perform (task.js:129)
       at Scheduler.js:276
       at Array.forEach (<anonymous>)
       at resolvePromise (zone.js:832)
       at zone.js:898
       at ZoneDelegate.push.../../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
       at Object.onInvokeTask (core.js:28173)
       at ZoneDelegate.push.../../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
       at Zone.push.../../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
       at drainMicroTaskQueue (zone.js:601)
       at ZoneTask.push.../../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:507)
       at invokeTask (zone.js:1671)
       at XMLHttpRequest.globalZoneAwareCallback (zone.js:1708)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org