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/05/23 21:38:26 UTC

[GitHub] [incubator-echarts] rajshivam opened a new issue #12689: boderRadius for image in backgroundColor option of rich text doesn't crop the image.

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


   <!--
   Please Use https://ecomfe.github.io/echarts-issue-helper to create the issue.
   Otherwise, it will be closed immediately.
   Questions in the form of *How to use ...* should be at Stack Overflow rather than GitHub issue list.
   
   请注意,所有 issue 必须由 https://ecomfe.github.io/echarts-issue-helper/ 创建,不然将会被直接关闭。建议使用英文提问。
   Issues 中不要问「如何使用 ECharts 实现……功能」的问题,相关问题请到 SegmentFault 或 Stack Overflow 提问,详见上面的链接。
   -->
   
   This issue is not created by [echarts-issue-helper](https://ecomfe.github.io/echarts-issue-helper) and will be soon closed.
   
   Trying to add an image in treemap label, borderRadius doesn't apply to the image in backgroundColor.
   
   Kindly refer the code snippet below:
   
   `label: {
     formatter: "{a}",
     rich : {
     a: {
       backgroundColor: {
         image: <some image link>         
       },
       height: 46,
       width: 46,
       borderWidth: 2,
       borderRadius: 23,
        borderColor: "#fff"
     }
   }
   ` 
   This shows a circular border on top of the background image.
   Along with the circular border, the background image should be cropped.


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