I am using Highcharts5.0.7. I have a pie chart, and on click of its slice, i pass the slice color to another column chart. This colum chart bar colors uses the same color as the selected pie slice color.
My problem
i want the color of the column chart to be filled in gradient. So how can i calculate a standard gradient rgba value based on the color i receive from pie slice?
Secondly, if i print the selected column color of the second chart, it prints as "url(#highcharts-9920sdn-114)" instead of the rgba value. How can i get selected color of column in rgba?
options.colors[0] = {
"linearGradient": {
"x1": 0,
"y1": 0,
"x2": 1,
"y2": 0
},
"stops": [
[0, primaryColor],
[1, primaryColor]
]
};