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/09/14 03:29:43 UTC

[GitHub] [echarts] HAM2506 opened a new issue #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

HAM2506 opened a new issue #15717:
URL: https://github.com/apache/echarts/issues/15717


   ### Version
   5.2.0
   
   ### Reproduction link
   [https://codepen.io/ham2506/pen/mdwMxVW](https://codepen.io/ham2506/pen/mdwMxVW)
   
   ### Steps to reproduce
   单独给legend设置icon path,预期icon应该显示为直线,在v4.x和v5.0.1的版本是符合预期的,但是在v5.2.0显示为方块。
   
   ### What is expected?
   legend icon显示为直线
   
   ### What is actually happening?
   legend icon显示为方块
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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.

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] pissang removed a comment on issue #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

Posted by GitBox <gi...@apache.org>.
pissang removed a comment on issue #15717:
URL: https://github.com/apache/echarts/issues/15717#issuecomment-918830561


   加上
   
   ```ts
   symbolKeepAspect: true
   ```
   
   试试


-- 
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] pissang closed issue #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

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


   


-- 
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] pissang commented on issue #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

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


   加上
   
   ```ts
   symbolKeepAspect: true
   ```
   
   试试


-- 
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] pissang commented on issue #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

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


   看这个 path 本身就是一个 40x10 的长方形,现在的才是应该符合预期的,你可以把 path 的高度改得小一点:
   ```ts
   var iconpath = "path://M0 0 L40 0 L40 2 L0 2z"
   ```


-- 
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 #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

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






-- 
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] pissang removed a comment on issue #15717: legend单独设置icon时,itemHeight在v5.0.1和v5.2.0显示不一致

Posted by GitBox <gi...@apache.org>.
pissang removed a comment on issue #15717:
URL: https://github.com/apache/echarts/issues/15717#issuecomment-918829884


   看这个 path 本身就是一个 40x10 的长方形,现在的才是应该符合预期的,你可以把 path 的高度改得小一点:
   ```ts
   var iconpath = "path://M0 0 L40 0 L40 2 L0 2z"
   ```


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