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 2020/04/22 08:30:14 UTC

[GitHub] [incubator-echarts] znn0105 opened a new issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

znn0105 opened a new issue #12479:
URL: https://github.com/apache/incubator-echarts/issues/12479


   ### Version
   4.2.1
   ### Steps to reproduce
   series里同时存在多个type为lines的对象,effect里的trailLength(尾迹长度)会被共用
   
   ### What is expected?
   多个lines同时存在时,可以分别设置不同的trailLength尾迹长度
   
   ### What is actually happening?
   只要其中一个lines的trailLength不为0,其他lines的trailLength 即使设置为0也无效
   
   <!-- 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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] znn0105 commented on issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

Posted by GitBox <gi...@apache.org>.
znn0105 commented on issue #12479:
URL: https://github.com/apache/incubator-echarts/issues/12479#issuecomment-618319062


   https://gallery.echartsjs.com/editor.html?c=xK85XdQJZO&v=2


----------------------------------------------------------------
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] [incubator-echarts] alex2wong commented on issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

Posted by GitBox <gi...@apache.org>.
alex2wong commented on issue #12479:
URL: https://github.com/apache/incubator-echarts/issues/12479#issuecomment-633034566


   修改配置即可: https://gallery.echartsjs.com/editor.html?c=xK85XdQJZO&v=3 
   参考文档:https://echarts.apache.org/zh/option.html#series-lines.effect
   所有带有尾迹特效的图表需要单独放在一个层,也就是需要单独设置 zlevel。当然如果不同的 trailLength Effect lines 系列,需要设置不同的 zlevel,以方便 canvas 去做不同的 trailLength 渲染。
   
   ```
   {
               type:"lines",
               coordinateSystem: "cartesian2d",
               lineStyle:{
                 width:0
               },
               zlevel:3,   // 与第一个 Effect 系列不同的 zlevel 即可
               effect:{
                 show:true,
                 symbol:"circle",
                 symbolSize:4,
                 color:"#23E0FF",
                 trailLength:0.4
               },
               data:[
                 {name:"lyxtLine1",coords:[[73,48],[73,75]]},
                 {name:"lyxtLine2",coords:[[75,38],[75,65]]},
                 {name:"lyxtLine3",coords:[[95,23],[95,50]]},
                 {name:"lyxtLine4",coords:[[135,35],[135,75]]},
                 {name:"lyxtLine5",coords:[[120,55],[120,83]]},
                 {name:"lyxtLine6",coords:[[142,45],[142,65]]},
               ]
             }
   ```
   具体源代码参考:
   https://github.com/apache/incubator-echarts/blob/master/src/chart/lines/LinesView.js#L67


----------------------------------------------------------------
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] [incubator-echarts] alex2wong commented on issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

Posted by GitBox <gi...@apache.org>.
alex2wong commented on issue #12479:
URL: https://github.com/apache/incubator-echarts/issues/12479#issuecomment-636327262


   由于一段时间不活跃,关闭此 issue,有问题请随时重开 @znn0105 


----------------------------------------------------------------
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] [incubator-echarts] alex2wong closed issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

Posted by GitBox <gi...@apache.org>.
alex2wong closed issue #12479:
URL: https://github.com/apache/incubator-echarts/issues/12479


   


----------------------------------------------------------------
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] [incubator-echarts] echarts-bot[bot] commented on issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

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


   @znn0105 Please provide a demo for the issue either with https://jsfiddle.net/ovilia/n6xc4df3/ or https://gallery.echartsjs.com/editor.html.


----------------------------------------------------------------
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] [incubator-echarts] echarts-bot[bot] commented on issue #12479: 当series存在多个飞线图时,不同lines下effect中的trailLength(尾迹长度)会互相影响

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


   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 questions.
   
   If you are interested in the project, you may also subscribe our [mail 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