toggle legend box
if you can add a button which allows user to toggle the legend the it will be great, because as of now if you are displaying the legend on chart area then some part of chart points get hidden because of legend, and user just cant see them because legend box is on top of the chart points.
I even tried to do a normal toggle action with help of jquery but there are some issues when we do it. e.g. if we hide the legend and then add some series dynamically to chart then series gets added properly but the legend dsnt get updated with new series. :(
Here’s a small method for toggling the legend via an API call, that can be hooked on to a button outside the chart. http://jsfiddle.net/highcharts/3Bh7b/76/
We do have a plugin for a draggable legend box, though it can’t be toggled on an off. See http://highcharts.uservoice.com/forums/55896-general/suggestions/912335-draggable-legend-box.
I find that Torstein's solution works. I would just suggest to add
this.options.enabled = true/false
as appropriate to ensure that the navigator position is adjusted correctly with Highstock.
for paging, if applicable.
Boris Kozorovitzky commented
I would like to see that feature too. See http://stackoverflow.com/questions/26328104/make-the-legend-disappear-in-highcharts
Richard Rice commented
Can the legend be movable as well as hidden?
Could you send the full code?
I couldn't get it to work
$("#container .highcharts-legend").show() //or hide();