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/03/31 08:10:35 UTC

[GitHub] [incubator-echarts] 10229428 opened a new issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

10229428 opened a new issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356
 
 
   ### Version
   4.7.0
   
   ### Reproduction link
   [https://jsfiddle.net/tianhen0527/roh3uw0a/6/](https://jsfiddle.net/tianhen0527/roh3uw0a/6/)
   
   ### Steps to reproduce
   在tree中,使用symbol动态设置某个节点的图标,我希望显示一个 `...` 的省略号图标,但是图标却被拉伸显示了,如下图所示:
   ![bbb](https://user-images.githubusercontent.com/42016535/78002579-083a7d80-736a-11ea-9da4-ceebd70580e1.png)
   
   我在配置手册中,也没有找到可以配置symbol尺寸的设置。
   
   而我期望的效果大概是这样的:
   ![aaaa](https://user-images.githubusercontent.com/42016535/78002451-d75a4880-7369-11ea-8bf4-9065212d77e8.png)
   
   ### What is expected?
   期望图标本身可以保持原来的样子而不被拉伸
   
   ### What is actually happening?
   看起来图标是被拉伸了
   
   <!-- 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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 10229428 closed issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
10229428 closed issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356
 
 
   

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 10229428 commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
10229428 commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356#issuecomment-613799472
 
 
   @pissang 谢谢!

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] pissang commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356#issuecomment-613260657
 
 
   @100pah @10229428 一般这种边距可以用一个比较粗的白色的描边模拟,不过我看看图里已经有一条红色描边了,如果可以的话可以把这个红色描边改成白色,然后改粗一点

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 10229428 commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
10229428 commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356#issuecomment-607635311
 
 
   @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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] plainheart commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356#issuecomment-607604424
 
 
   我认为是可以的,使用functional symbolSize,参考 https://www.echartsjs.com/zh/option.html#series-tree.symbolSize
   示例:
   ```js
   symbolSize: (value, params) => {
       if(params.data.more) {
           return [8, 2]
       }
       return 10
   }
   ```

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] plainheart edited a comment on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356#issuecomment-607604424
 
 
   我认为是可以的,使用functional symbolSize,参考 https://www.echartsjs.com/zh/option.html#series-tree.symbolSize
   示例:
   ```js
   symbolSize: (value, params) => {
       if(params.data.more) {
           return [8, 2]
       }
       return 10
   }
   ```
   或者使用 symbolKeepAspect 保持长宽比
   https://www.echartsjs.com/zh/option.html#series-tree.symbolKeepAspect
   
   ![image](https://user-images.githubusercontent.com/26999792/78208685-8e280700-74d7-11ea-909b-6c8e3c21b4ec.png)
   

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 100pah commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #12356: Tree中节点的symbol,是否可以不拉伸?默认好像是会将图标拉伸显示
URL: https://github.com/apache/incubator-echarts/issues/12356#issuecomment-609412290
 
 
   当前确实没有想到方便的方法,在两边设置 “间距”。
   @pissang 有什么好想法么?

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


With regards,
Apache Git Services

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