score:9
Accepted answer
Hide each series using series.setVisible(false, false)
, reference. - After all series will be hidden call chart.redraw()
to redraw chart only once.
score:2
this solution is based on http://jsfiddle.net/pGuEv/
var chart = $('#chart-container').highcharts();
var $hide_show_all_button = $('#hide_show_all_series_button');
$hide_show_all_button.click(function() {
var series = chart.series[0];
if (series.visible) {
$(chart.series).each(function(){
this.setVisible(false, false);
});
chart.redraw();
$hide_show_all_button.html('show all');
} else {
$(chart.series).each(function(){
this.setVisible(true, false);
});
chart.redraw();
$hide_show_all_button.html('hide all');
}
});
Source: stackoverflow.com
Related Query
- How can i hide all the Series in highcharts at a time
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- Highcharts data from google spreadsheet hide all series except one at start
- HighCharts Hide Series Name from the Legend
- Proper way to remove all series data from a highcharts chart?
- Highcharts Series - want to show/hide all EXCEPT selected series (reversal of default logic)
- How can I hide series from a HighCharts legend?
- Highchart - show / hide an y-Axis without hiding the series
- How can I hide a series from initially being displayed in Highcharts
- Highcharts - How to hide series name and Y value in tooltip
- Hide all but selected data series, HighCharts
- Show specific series values in the stack label using highcharts
- How can I delete all of the points from a highcharts series
- How to hide one series data info in tooltip using highcharts
- highcharts / highstock column doesn't show all datalabels
- How can I hide ALL series with the same ID with a button on highcharts? (line graph)
- Highcharts hide series without change legend color
- Show / Hide plotband in Highcharts - Javascript
- Highcharts: show series on legend but hide on chart
- Show all labels in highcharts horizontal bar graph
- How can I hide and show a category in highcharts
- How to show 0 for incomplete Series in Highcharts
- Highcharts - Hide series "points" (labels) on both x- and y-axis
- Highcharts animate series on show
- Highcharts show the same yAxis start and end value with multiple data series
- How show all tooltips split in graph with many series
- How To Show All Data Labels For Datetime Axis In Highcharts
- How to show Legends for all the series data in stacked column chart Highcharts?
- Show special symbol for each series in category in highcharts
- Highcharts won't draw line when series values are all 0
More Query from same tag
- Highcharts - show at least 5 horizontal grid lines, even when value doesn't change
- Highcharts step & offset x axis labels?
- Can highcharts crosshairs show on top of area chart fill?
- Setting a custom variable in Highcharts
- How can you add flags to points on a graph
- Marker transform(translate) doesn't work
- Highcharts custom styling connect and label
- Formatting tooltip in Highcharts
- Highcharts prevent page on mobile Safari from moving up and down as I scroll horizontally through data points
- Can I change series array completely in highcharts
- Chart Y-Axis fixed interval
- How Can we display blocked area for particular timeline in horizontal bar in gantt highchart
- Highcharts Y Axis overlay while re-rendering with React
- How are Highcharts event listeners handled
- How to get the exported image without moving from the current window when using mobile devices
- Highcharts Columns with empty columns
- Highcharts Pie Chart Label Threshold
- How to make yAxis stackLabels under yAxis in Highcharts?
- How do get highcharts combo column scatter to work?
- How to call a Jquery automatically after a Div is created?
- Highcharts Bubbles - how do I change bubble background and line color?
- Highcharts point click event returns "hover" state instead of "select" state
- How to open chart in new tab?
- timestamp values showing wrong on xaxis in highcharts its show default 1970-01-18
- why I am getting undefined value in angular js
- HighCharts - Horizontal line with the zoomed average of the values
- after using for loop all my column graphs are plotted in single color i need each bar in different color in highcharts
- HighCharts zoom in selection event
- Loading Highcharts via shim using RequireJS and maintaining jQuery dependency
- Can highcharts xrange labels be shown only if they fit the box?