score:15

Accepted answer

Well, the easiest way I've found to do that is just adding the legend attribute to chart_object and set enabled to false: Sample:

var chart_object = {
 chart: {
 renderTo: render_to,
 type: graph_type
},
legend:{ enabled:false },
colors:graph_colors,
(...)

score:5

In case when you need do it dynamically, you can use this solution

 $('#updateLegend').click(function (e) {
        var legend = chart.legend; 

        if(legend.display) {
            legend.group.hide();
            legend.box.hide();
            legend.display = false;
        } else {

            legend.group.show();
            legend.box.show();
            legend.display = true;
        }
    });

http://jsfiddle.net/sbochan/3Bh7b/1/


Related Query

More Query from same tag