How can I change the colors of my highcharts piechart?

前端 未结 8 661
不知归路
不知归路 2020-12-13 17:15

I\'m using highcharts to make a piechart but I\'m having trouble loading a custom color set for my chart.

Here is my code:

     

        
8条回答
  •  醉酒成梦
    2020-12-13 17:45

    Highcharts.setOptions({
     colors: ['#333', '#CB2326', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#CB2326',      '#6AF9C4']
    });
    

提交回复
热议问题