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/02/22 07:35:37 UTC

[GitHub] [echarts] aha-09 opened a new issue #14315: 树图lable经由formatter添加换行符后,出现多个label

aha-09 opened a new issue #14315:
URL: https://github.com/apache/echarts/issues/14315


   画了一个树图,想让label文字竖着摆放,于是在label.formatter里添加了换行符
        
   `
   formatter: function(param){
                 return `{others|${param.name.split('').join('\n')}}`
            }
         }
   `
   打印返回值如下:
   `
   {others|1
   1
   1}
   `
   这个时候,在label.rich里面给others加上边框,呈现三个闭合边框。在label.rich内设置宽高只能控制单个文字的宽高,如果在label里直接写宽高,则所有的label(包括除label外)大小均被改变,即rich失去意义。 
   ![微信图片_20210222152344](https://user-images.githubusercontent.com/78473426/108675601-fd5c7e80-7521-11eb-8d43-adfda31a2785.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



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


[GitHub] [echarts] echarts-bot[bot] closed issue #14315: 树图lable经由formatter添加换行符后,出现多个label

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #14315:
URL: https://github.com/apache/echarts/issues/14315


   


----------------------------------------------------------------
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 #14315: 树图lable经由formatter添加换行符后,出现多个label

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


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,请使用 issue 模板重新创建 issue。
   
   如果您认为虽然没有使用模板,但您已经提供了复现问题的充分描述,或者您的问题无法使用模板表达,也可以重新 open 这个 issue。


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