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/07 05:45:57 UTC

[GitHub] [echarts] clark-tan opened a new issue, #17627: [Bug] markline动态添加无效

clark-tan opened a new issue, #17627:
URL: https://github.com/apache/echarts/issues/17627

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/clark-tan/pen/QWrjMyB
   
   ### Steps to Reproduce
   
   1.初始化折线图标后通过getoption获取配置,
   2.动态添加markline,再通过setoption设置
   
   
   
   
   ### Current Behavior
   
   markline没有跟预期一样显示
   
   ### Expected Behavior
   
   动态添加markline,再通过setoption设置的时候可以正常显示markline
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17627:
URL: https://github.com/apache/echarts/issues/17627#issuecomment-1238933166

   @clark-tan It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] Markline dynamic addition is invalid
   
   **BODY**
   
   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/clark-tan/pen/QWrjMyB
   
   ### Steps to Reproduce
   
   1. After initializing the polyline icon, get the configuration through gettoption,
   2. Dynamically add markers, and then set them through settion
   
   ### Current Behavior
   
   The markline did not show up as expected
   
   ### Expected Behavior
   
   Dynamically add the marker, and then display the marker normally when it is set through sett
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


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


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

Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #17627: [Bug] markline动态添加无效
URL: https://github.com/apache/echarts/issues/17627


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