How can I change the colors of my highcharts piechart?

前端 未结 8 660
不知归路
不知归路 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:40

    Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]

    In high charts inbuilt colors we have. So you need to change the path of the color[0] or [1]........[6]

提交回复
热议问题