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/11/23 04:17:47 UTC

[GitHub] [echarts] sheepzheng commented on issue #16088: grid.containlabel can't deal with formattered label

sheepzheng commented on issue #16088:
URL: https://github.com/apache/echarts/issues/16088#issuecomment-976156534


   ```option = {
       title: {
           text: 'Awesome Chart'
       },
       grid:{
           containLabel:true,
       },
       xAxis: {
           type: 'value',
           max:310,
           interval: 62,
           data: []
       },
       yAxis: {
           type: 'category',
       },
       series: [{
           type: 'bar',
           label: {
               show:true,
               position:'right',
               formatter: (params) => {
                   return '这是一段测试文本这是一段测试文本这是一段测试文本这是一段测试文本'
               }
           },
           data:[220, 182, 191, 234, 290, 330, 310]
       }]
   };
   ```
   ![捕获](https://user-images.githubusercontent.com/28753095/142970569-86863162-74b6-45b3-9853-8f22272ee76a.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.

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