yongnny opened a new issue #10945: 仪表盘 使用 dataset 提供数据源时,myChart.setOption( 
modify, false); 会显示不出数据
URL: https://github.com/apache/incubator-echarts/issues/10945
 
 
   ### Version
   4.2.1
   
   ### Reproduction link
   
[https://www.echartsjs.com/examples/editor.html?c=gauge](https://www.echartsjs.com/examples/editor.html?c=gauge)
   
   ### Steps to reproduce
   option = {
       backgroundColor: '#FFF',
       tooltip : {
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               restore: {},
               saveAsImage: {}
           }
       },
       dataset : {
           source : [[10], [30]]
       },
       series: [
           {
               name: '业务指标',
               type: 'gauge',
               detail: {formatter:'{value}%'},
               //data: [{value: 50, name: '完成率'}]
           }
       ]
   };
   
   setInterval(function () {
       //option.series[0].data[0].value = (Math.random() * 100).toFixed(2) - 0;
       
       //var ttt = myChart.getOption();
       
       var ttt = {
            dataset : {
               source : [[15], [67]]
           }
       }
       
       // var ttt = {
       //     backgroundColor: '#FFC',
       // }
       
       myChart.setOption(ttt);
   },2000);
   
   ### What is expected?
   仪表盘 不显示指针,而是 NaN
   
   ### What is actually happening?
   仪表盘 的数据 被成功更新
   
   <!-- This issue is generated by echarts-issue-helper. 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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to