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 2019/10/14 11:58:50 UTC

[GitHub] [incubator-echarts] pissang opened a new issue #11395: An error thrown in the Scheduler

pissang opened a new issue #11395: An error thrown in the Scheduler
URL: https://github.com/apache/incubator-echarts/issues/11395
 
 
   ### Version
   4.3.0
   
   ### Steps to reproduce
     setOption with legend unselected in option
     setOption with delay
     resize
   
   Full test code:
   ```html
   
   <html>
       <head>
           <meta charset="utf-8">
           <meta name="viewport" content="width=device-width, initial-scale=1" />
           <script src="lib/esl.js"></script>
           <script src="lib/config.js"></script>
           <script src="lib/jquery.min.js"></script>
           <script src="lib/facePrint.js"></script>
           <script src="lib/testHelper.js"></script>
           <link rel="stylesheet" href="lib/reset.css" />
       </head>
       <body>
           <style>
           </style>
   
           <div id="main0"></div>
   
           <script>
           require(['echarts'/*, 'map/js/china' */], function (echarts) {
               var option;
   
               option = {
                   legend: [{
                       data: ['dataset 1', 'dataset 2'],
                       selected: {
                           'dataset 2': false,
                           'dataset 1': true
                       }
                   }],
                   xAxis: {
                       data: ['Beijing', 'Guangzhou', 'Shenzhen']
                   },
                   yAxis: {},
                   series: [{
                       name: 'dataset 1',
                       type: 'bar',
                       data: [10, 20, 15]
                   }, {
                       name: 'dataset 2',
                       type: 'bar',
                       data: [10, 20, 15]
                   }]
               };
   
               var chart = testHelper.create(echarts, 'main0', {
                   title: [
                       'Delay setOption',
                       'It should not throw error when doing following steps',
                       '(1) setOption with legend unselected in option',
                       '(2) setOption with delay',
                       '(3) resize()'
                   ],
                   option: option
               });
   
               chart.setOption({}, false, true);
               chart.resize();
           });
           </script>
   
       </body>
   </html>
   ```
   
   ### What is expected?
   Chart is displayed properly
   
   ### What is actually happening?
   Throw an error
   
   <img width="604" alt="MacHi 2019-10-14 19-58-13" src="https://user-images.githubusercontent.com/841551/66749661-057fc500-eebd-11e9-8a27-78c4ef4afb51.png">
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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


With regards,
Apache Git Services

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