I have an pie chart which is as follows
{
type : 'pie',
data : [], //here i'm getting dynamic data
center : [50, 15 ],
size : 80,
showInLegend : false,
dataLabels : enabled: true,
}
And i want to change color of pie chart
My main question is
Is it possible to set color here by some attribute or i have to get it from dynamic data
update
got answer
Highcharts.setOptions({
colors: ['#F64A16', '#0ECDFD',]
});
Got an answer
we can set highchart custom color by setOption function
which is as
It sets color to my pie chart.
Another solution for dynamic 3D color
Actually this customization for theme selection
Here it is
3 colors sets to color variable
& assign directly in series