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;
}
});
Source: stackoverflow.com
Related Query
- Hide or Disable Legend or Label in the end Highcharts line
- How can I add a text link just below the legend box in highcharts
- Highcharts Pie chart: how to hide the legend for all but the three highest values
- HighCharts Hide Series Name from the Legend
- How to hide labels in the highcharts in the pie
- How can i hide all the Series in highcharts at a time
- Highcharts - How to display legend symbol inside the tooltip
- How to hide/disable the legend box in Highcharts.js?
- Is it possible to hide the line & symbol next to Highcharts legend items?
- How to Check and Uncheck all the Legend elements in HighCharts Linechart?
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- How to completely disable the mouse/finger interaction for highcharts
- How to hide series via the legend in highstock ?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- How Can I Hide a Pie Chart's Slice in HighCharts Without Removing It From the Legend?
- how to display 2 same highcharts without duplicate the code
- How to keep the highcharts legend "on" while hiding the series
- How to show the legend in HighCharts
- highcharts how to hide legendSymbol in front of particular legend name?
- How to move the legend in Highcharts
- How do I completely hide the chart title in a HighCharts chart?
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- Highcharts -> how to add vertical title to bar? how to make the symbol in the legend a rectangle?
- canvg and highcharts how to include chart legend and keep the chart size?
- Highcharts - Disable the legend of secondary y axis by default
- How do i color the highcharts legend square symbol when my chart has multiple color entries
- highcharts hide the chart except the legend
- How can hide the icon legend
- How to make a HighCharts drilldown column/bar chart that does not hide the non-drilldown categories
- How to show only the last 100 candlesticks or hide the first 50 candlesticks in Highcharts Stock Chart?
More Query from same tag
- Export data from highcharts in csv file with dates in milliseconds
- Highcharts multiple series drilldown to multiple series
- Why doesn't my high-chart load on subsequent jquery-ajax call?
- Hight Chart Polar Scatter Plot values on chart and x-axis
- highcharts-angular dynamically update from DB
- how to add custom class name to tick positioner in Highcharts using javascript
- disabled zooming when scrolling the mouse in the tooltip of scatter plot highcharts
- How could I sort each group of columns from low to high
- Highcharts - xAxis date
- Highstock mouseover data window
- HighCharts, Json Format
- Highmaps + google sheets + javascript integration broken?
- highcharts heatmap Uncaught TypeError: Cannot read property 'prototype' of undefined
- Can I scrape the raw data from highcharts.js?
- HighCharts Stock Chart fire event on chart redraw?
- how to pass data to next page in HighCharts?
- How to ignore hidden series when clicking on a legend using highcharts?
- HighCharts - Horizontal line with the zoomed average of the values
- How do you set the text-overflow property of a highcharts-legend-item to ellipsis in styled mode?
- Printing html page elements
- Highcharts: Zebra color chart background
- HighStock xDateFormat month name
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- Highcharts : labels inside columnrange bar
- Highcharts Add text to label
- Vue 3 how to correctly update data in Highcharts?
- Angular4 with highcharts can't use world.js
- highcharts-react Gantt: get mouse coordinates from mouse-over
- How to use no-data-to-display within Highcharts-Vue wrapper
- Toggle between chart and table in panel