How can mouse events be captured on highcharts axis label?
I wish to handle the click event on the labels to perform certain actions
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
The axis labels can be accessed as
yAxis.ticks["x"].label.element
. This is the element of the label, and now any event on this element can be handled as follows.It's always better to unbind any previously added handler as same labels may be reused by highchart internally.
Handling/capturing events on axis labels @ jsFiddle