Echarts pie configuration items

let option = {
    color:['#36BB95','#1A9AE9'],
    series: [
         {
             name: '',
             type: 'pie',
             radius: ['50%', '70%'],//饼图半径
             hoverAnimation : false,//是否开启hover在扇区上的放大动画效果。
             label: {
                     normal:{
                         show:true,
                         position:'center',
                         textStyle:{
                               color: 'rgba(0,0,0,0)'
                         }
                    }
               },
               //获得焦点,高亮时的样式
               emphasis: {
                     label:{
                            show:true,
                            formatter:function(params){
                                 var value = '';
                                 value = '{a|'+params.data.name+'}\r\n'+ '{b|'+params.data.value+'}';
                                 return value;
                  		     },
                             rich:{
                                    a: {
                                         color: '#595C61',
                                         fontSize: 14,
                                         lineHeight:22
                                    },
                                    b:{
                                         color: '#000000',
                                         fontSize: 24,
                                         lineHeight:32
                                     }
                             }
                       }
                   },
                  data:  []
               }
        ]
};
Published 259 original articles · won praise 21 · views 50000 +

Guess you like

Origin blog.csdn.net/wsln_123456/article/details/104036526