score:2

highcharts.map is nothing more than simple for which can be replaced by for(var i = 0; i < colors.length; i++) { ... }.

highcharts.color create color object. you don't need to use that, just create two arrays for colors, one for starting colors, one for end colors:

var startcolors = ["#55bf3b", "#df5353", "#dddf0d", "#7798bf"];
var endcolors = ["#7798bf", "#dddf0d", "#df5353", '#55bf3b' ];

then loop over them to set colors:

$scope.chartconfig.options.colors[0] = {
    radialgradient: { cx: 0.5, cy: 0.3, r: 0.7 },
    stops: [
        [0, startcolors[0]],
        [1, endcolors[0]] 
    ]
}

Related Query

More Query from same tag