moguzi12345
series : [
            {
              type : \'pie\',
              hoverAnimation: false,
              center : [\'16%\', \'20%\'],
              radius : radius,
              label: { //  饼图图形上的文本标签
                normal: { // normal 是图形在默认状态下的样式
                  show: true,
                  position: \'center\',
                  color: \'#000\',
                  fontSize: 16,
                  fontWeight: \'bold\',
                  formatter: \'{c}\' // {b}:数据名; {c}:数据值; {d}:百分比,可以自定义显示内容,
                }
              },
              data : [
                {name:\'GoogleMaps\',
                  value: parseInt(data_1),
                  itemStyle : {
                    normal: {
                      color: \'#2866FF\',
                      label: {
                        normal: {show: true}
                      }
                    }
                  }
                },
                {name:\'other\',value:100 - parseInt(data_1), itemStyle : labelBottom, label: { normal: { show: false}}}
              ]
            },

 

效果展示: 

  

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-06-30
  • 2021-11-24
猜你喜欢
  • 2021-08-25
  • 2021-09-14
  • 2022-12-23
  • 2021-07-04
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案