Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highcharts legend item hover event?

Tags:

highcharts

I have a chart where I want some series not to be clickable in the legend, but others to be clickable. That was easy, because there was a legendItemClick event that I could make do nothing depending on the series. An example is here: http://jsfiddle.net/9PqyG/3/

My problem is that the mouse pointer still changes from the arrow to the clickable-link-hand-pointer, and I don't want anyone thinking that this is clickable. I know that I can change the itemHoverStyle parameter to make the arrow appear for all the legend items, but that will change it for every series. Can I make this happen only for a particular series?

like image 422
newmanne Avatar asked Nov 04 '22 19:11

newmanne


1 Answers

I would up just using a CSS selector: .highcharts-legend-item:first-child:hover { cursor:crosshair; }

like image 143
newmanne Avatar answered Nov 09 '22 08:11

newmanne