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:
us...@infra.apache.org



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

Reply via email to