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/19 03:58:51 UTC

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

clark-tan commented on issue #17627:
URL: https://github.com/apache/echarts/issues/17627#issuecomment-1250540420

   > ```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);
   > ```
   
   I think I misexpressed it. I wanted to ask you about this example: https://codepen.io/clark-tan/pen/QWrjMyB 


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