I would like to ask if it is possible to just hide all the legend box in a chart using HighCharts.js library?
var chart_object = {
chart: {
    renderTo: render_to,
    type: graph_type
},
colors:graph_colors,
title: {
    text: ''
},
xAxis: {
    min: 0,
    title: {
        text: x_axis.title,
        margin: 15
    },
    categories: categories,
},
(...)           
};
 // Create the chart
 var chart = new Highcharts.Chart(chart_object);
Any help will be appreciated.
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,
(...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With