更新时间:2022-10-18 08:40:38
可以通过为每个系列定义特定的选择状态来解决问题,请参阅 http://jsfiddle.net/jZmYW/5/
感谢highcharts支持团队在这里提供帮助。
Is it possible to have different colors for different selected columns in highcharts?
Here's a sketch for what I'm trying to do: http://jsfiddle.net/jZmYW/4/
When selecting a point (column) it should get a specific color. I try to achieve that with setting new data for the selected point. Visually it leads to the expected result but comes with a JS-error: "Uncaught TypeError: Property 'setState' of object # is not a function".
I also tried to apply the functionality to the series (with setting new data there). That gives a quite similar result where the JS-error is slightly different: "Uncaught TypeError: Property 'firePointEvent' of object # is not a function".
Any ideas?
The problem can be solved by defining a specific select state for each series, see http://jsfiddle.net/jZmYW/5/
Thanks to the highcharts support team for helping here.