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 2021/03/10 12:17:58 UTC

[GitHub] [echarts] baokeyu123 opened a new issue #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

baokeyu123 opened a new issue #14446:
URL: https://github.com/apache/echarts/issues/14446


   ### Version
   5.0.2
   
   ### Steps to reproduce
   replaceMerge  just replace API in setOption. but i want to just replace series[1].if series is  array.
   
   how to resolve this problem。
   
   thanks
   
   ### What is expected?
   resolve problem
   
   ### What is actually happening?
   for example
   
   mychart.setOption({
               series: [{
                   type: 'line',
                   animationDuration: 100,
                   animationEasing: 'linear',
                   data: data
               },
   {
                   type: 'lines',
                   animationDuration: 100,
                   animationEasing: 'linear',
                   data: data
               },
               ]
           },{replaceMerge :[series[1]]}});
   
   ---
   bless for you
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->
   @plainheart 


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



---------------------------------------------------------------------
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 #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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



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


[GitHub] [echarts] 100pah commented on issue #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #14446:
URL: https://github.com/apache/echarts/issues/14446#issuecomment-796508342


   ```js
   
   
   mychart.setOption({
       series: [{
           // if id is specified, this option will be 
           // merged to the existing series with this id.
           id: 'line_series',
           type: 'line',
           animationDuration: 100,
           animationEasing: 'linear',
           data: data
       }, {
           // if id is not specified, a new series instance 
           // will be created by this option, and the previous
           // series[1] will be removed.
           type: 'lines',
           animationDuration: 100,
           animationEasing: 'linear',
           data: data
       }]
   }, {
       replaceMerge: 'series'
   });
   
   ```


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



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


[GitHub] [echarts] baokeyu123 closed issue #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

Posted by GitBox <gi...@apache.org>.
baokeyu123 closed issue #14446:
URL: https://github.com/apache/echarts/issues/14446


   


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



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


[GitHub] [echarts] baokeyu123 commented on issue #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

Posted by GitBox <gi...@apache.org>.
baokeyu123 commented on issue #14446:
URL: https://github.com/apache/echarts/issues/14446#issuecomment-796387539


   @leeight 
   
    {
                   type: 'lines',
                   coordinateSystem: 'cartesian2d',
                   polyline: true,
                   effect: {
                       show: true,
                       trailLength: 0,
                       symbol: 'rect',
                       period: 12,  //滑动速度
                       symbolSize: [200, 15],
                       color: 'black',
                       loop: false,
                   },
                   data: [{
                       coords: [
                           [0, 0],
                           [Distance, 0] 
                       ]
                   },],
               }
   
   i don't  set API loop:true ,because i want to update data and animation is synchronize,update data exist  delay,so i have to rebuild lines animation
   
   thanks~


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



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


[GitHub] [echarts] baokeyu123 edited a comment on issue #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

Posted by GitBox <gi...@apache.org>.
baokeyu123 edited a comment on issue #14446:
URL: https://github.com/apache/echarts/issues/14446#issuecomment-796387539


   @leeight 
   ```js
    {
                   type: 'lines',
                   coordinateSystem: 'cartesian2d',
                   polyline: true,
                   effect: {
                       show: true,
                       trailLength: 0,
                       symbol: 'rect',
                       period: 12,  //滑动速度
                       symbolSize: [200, 15],
                       color: 'black',
                       loop: false,
                   },
                   data: [{
                       coords: [
                           [0, 0],
                           [Distance, 0] 
                       ]
                   },],
               }
   ```
   i don't  set API loop:true ,because i want to update data and animation is synchronize,update data exist  delay,so i have to rebuild lines animation
   
   thanks~


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



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