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 2022/09/18 15:01:22 UTC

[GitHub] [echarts] susiwen8 commented on issue #17627: [Bug] markline动态添加无效

susiwen8 commented on issue #17627:
URL: https://github.com/apache/echarts/issues/17627#issuecomment-1250326653

   ```js
   var container = document.getElementById('main');
   var chart = echarts.init(container);
   chart.setOption({
     xAxis: {
       data: ['A', 'B', 'C']
     },
     yAxis: {
       
     },
     series: [{
       type: 'line',
       data: [120, 200, 150]
     }]
   });
   
   setTimeout(function() {
     let opt = chart.getOption();
     console.log(opt)
     opt.series[0] = {
   
       markLine: {
         data: [{type: 'max'}]
       }
     }
     chart.setOption({ series: [
       {
   
       markLine: {
         data: [{name: "test", xAxis: 'B'}]
       }
     }
     ] });
   }, 3000);
   
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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