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/09/11 04:54:56 UTC

[GitHub] cuijian-dexter edited a comment on issue #8759: Enhance funnel chart label display policy

cuijian-dexter edited a comment on issue #8759: Enhance funnel chart label display policy
URL: https://github.com/apache/incubator-echarts/pull/8759#issuecomment-418055180
 
 
   @Ovilia 
   This is the options of pie chart.Adding the limitScale parameter.
   Less than limitScale, do not show.
   Do I need to resubmit a Pull Request?
   ```js
   options = {
           title: {
              text: '饼图标题',
               left: 16,
               textStyle: {
                   fontSize: 14
               }
           },
           tooltip : {
               trigger: 'item',
               axisPointer : {            // 坐标轴指示器,坐标轴触发有效
                   type : 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
               },
               extraCssText: 'max-width: 300px; word-break:break-all; white-space: normal'
           },
           legend:{
               data: []
           },
           series: [
               {
                   type: 'pie',
                   label: {
                       normal: {
                           show: true,
                           limitScale:0.02//小于2%的,不显示
                       },
                       emphasis: {
                           show: true,
                           textStyle: {
                               fontSize: '14',
                               fontWeight: 'bold'
                           }
                       }
                   },
                   labelLine: {
                       lineStyle: {
                           // color: '#D9D9D9'
                       }
                   },
                   data: []
               }
           ]
       };
   ```

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