I am using Highcharts-ng in an app. Everything is working fine. I've successfully added an additional "drilldown" attribute to the javascript file - great! But how do I add the code for a pie chart gradient fill?
$scope.chartConfig.options.colors = ["#55BF3B", "#DF5353", "#DDDF0D", "#7798BF"];
Highcharts.map($scope.chartConfig.options.colors, function (color) {
return {
radialGradient: { cx: 0.5, cy: 0.3, r: 0.7 },
stops: [
[0, color],
[1, Highcharts.Color(color).brighten(-0.3).get('rgb')] // darken
]
};
});
My difficulty is the fact that it uses "Highcharts.map" and "Highcharts.Color"?