You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/15 06:23:12 UTC

[GitHub] LYlanfeng opened a new pull request #8872: fix radiusAxis.axisLabel show problem because text is long

LYlanfeng opened a new pull request #8872: fix radiusAxis.axisLabel show problem because text is long
URL: https://github.com/apache/incubator-echarts/pull/8872
 
 
   问题:修复极坐标因为文字长度会影响显示问题
   方案: 在radiusAxis.axisLabel中新增属性:showAll,用于显示所有标签
   实例如下:
   ```javascript
   var option = {
               angleAxis: {},
               radiusAxis: {
                   type: 'category',
                   data: ['周一11', '周二222', '周三333333333333', '周四4444444444444444444444444444'],
                   z: 10,
                   axisLabel: {
                       showAll: true
                   }
               },
               polar: {},
               series: [{
                   type: 'bar',
                   data: [1, 2, 3, 4],
                   coordinateSystem: 'polar',
                   name: 'A',
                   stack: 'a'
               }, {
                   type: 'bar',
                   data: [2, 4, 6, 8],
                   coordinateSystem: 'polar',
                   name: 'B',
                   stack: 'a'
               }, {
                   type: 'bar',
                   data: [1, 2, 3, 4],
                   coordinateSystem: 'polar',
                   name: 'C',
                   stack: 'a'
               }],
               legend: {
                   show: true,
                   data: ['A', 'B', 'C']
               }
           };
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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