Settings and activity
2 results found
-
45 votes
Here’s how to add the events with jQuery:
http://jsfiddle.net/highcharts/5V33F/An error occurred while saving the comment An error occurred while saving the comment Patrick commentedI wanted to add that the approach you posted requires us to know the classes and element types used to render the chart. If this ever changes, it would force us to have to change as well. Just a thought...
An error occurred while saving the comment Patrick commentedThat is exactly what I do, I just thought it would be nice again to have some hover options without having to create an event handler.
An error occurred while saving the comment Patrick commentedI wrote a custom event handler to refresh/hide the tooltip when hovering over a legend. It would be nice if this was natively supported in the apis.
Patrick supported this idea · -
43 votes
An error occurred while saving the comment Patrick commentedThis should have many more votes in my opinion. There are many times you'd want separate legends for different series. I have a pie chart with 2 series that contain related data, but don't belong in the same legend. I ended up putting a custom listener on the redraw method that would move several of the legend items created to another area so the legends were at least separated logically.
Patrick supported this idea ·
Perhaps a slightly better approach that I use is to target the legend item itself instead of just the text. Here is an example:
http://jsfiddle.net/LAbQA/1/