Pie 3

描述:当前是关于Echarts图表中的 饼图 示例。
 
            option = {
   backgroundColor: '#000',
   color: ['#36F097', '#3DFFDC', '#5A3FFF', '#268AFF', '#1ED6FF', '#ADE1FF'],
   tooltip: {
      trigger: 'item'
   },
   //   legend: {
   //     orient: 'horizontal',
   //     bottom:20,
   //     right:20,
   //     textStyle:{
   //        color:'#fff'
   //     }
   //   },
   grid: {
      left: '3%',
      right: '4%',
      bottom: '10%',
      top: '10%',
   },
   series: [
      {
         name: 'Access From',
         type: 'pie',
         roseType: "radius",
         radius: '70%',
         center: ["50%", "48%"],
         itemStyle: {
            // 需要间距时打开
            // borderColor: '#000',
            // borderWidth: 3,
            shadowColor: 'rgba(0, 0, 0, 0.3)',
            shadowBlur: 20
         },
         data: [
            { value: 648, name: 'Search Engine' },
            { value: 535, name: 'Direct' },
            { value: 500, name: 'Email' },
            { value: 484, name: 'Union Ads' },
            { value: 400, name: 'Video Ads' },
            { value: 366, name: 'Audio Ads' }

         ],
         labelLine: {
            show: true,
            lineStyle: {
               color: '#fff',
            },
         },
      }
   ]
};