highcharts饼状图颜色控制

highcharts yekong

colors

wanjunshijiecom202203169RmOl4

      chartOptions: {
        chart: {
          type: 'pie',
          backgroundColor: 'rgba(0,0,0,0)',
          options3d: {
            enabled: true,
            alpha: 45
          }
        },
        colors: ['#03B0E7', '#E18E22', '#8E30FF', '#C9B224', '#E0AA12', '#48CBE1', '#51F3A9', '#C3D2A1', '#DC81E5', '#A6FCBD',],
        credits: {
          enabled: false
        },
        title: {
          text: ' '
        },
        subtitle: {
          text: ' '
        },
        plotOptions: {
          pie: {
            innerSize: 100,
            depth: 45,
            dataLabels: {
              style: {
                color: 'rgba(146, 178, 215, 1)'
              }
            },
          }
        },
        series: [{
          name: '功能类别',
          innerSize: '50%',
          data: [
            ['交通出行', 8],
            ['教育', 3],
            ['供水', 1],
            ['供电', 6],
            ['通讯运营', 8],
            ['燃气', 4],
            ['餐饮', 4],
            ['酒店', 1],
            ['医疗', 1],
            ['休闲娱乐', 1]
          ]
        }]
      }
喜欢