score:1
Accepted answer
You need to show series and redraw a chart. The most efficient way is to use the setVisible
method on each series with redraw
argument set to false
and call chart.redraw()
outside the loop.
$('#All').click(function() {
Highcharts.each(chart.series, function(s, i) {
s.setVisible(true, false);
});
chart.redraw();
});
Live demo: https://jsfiddle.net/BlackLabel/eztvoqa4/
API Reference:
https://api.highcharts.com/class-reference/Highcharts.Chart#redraw
https://api.highcharts.com/class-reference/Highcharts.Series#setVisible
Source: stackoverflow.com
Related Query
- Change chart type and redraw with multiple series in Highcharts
- Highcharts redraw series in chart
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - column chart redraw animation
- Highcharts - Scatter chart with a line connecting the dots in the series
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- Highcharts - Remove first marker from Area chart in every series
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- unable to get series id in HighCharts chart
- Highcharts chart redraw while exporting
- HighCharts Stock Chart error code 18
- adding series from existing highcharts chart
- highcharts IE8 redraw chart issue
- Highcharts - gap between series in stacked area chart
- highcharts chart showing only last element in series
- Redraw the pie chart in oval shape highcharts
- Highcharts can't render a bubble chart with a single series
- Highcharts cannot reload multiple series chart
- Highcharts - Redraw empty chart
- Highcharts + Angularjs : Graph doesn't redraw when adding series from an external event
- Adding series markers to highcharts area chart
- Highcharts series showing different data for 'column' and 'line' chart
- highcharts change chart type using dropdown for multiple series
- Highcharts no longer animates and readjusts/rescales chart upon addition and removal of series in legend after upgrading to jQuery 1.10
- change datalabels color in a HighCharts chart when hovering without updating the series
- HighCharts. Angular. Redraw Chart with new Series on Event Click
- Label position between series in Highcharts polar chart
- Highcharts - show series values outside chart container?
- Highcharts display label for pie chart using html table as data source
More Query from same tag
- Can I make a custom tooltip on a highcharts drilldown?
- Javascript chart component that can handle annotated news headlines
- Does not return data as intended when creating the chart
- Set (Sigma) Symbol as custom button text in Highcharts
- Adding Index for Week Of Date in MySQL
- Highcharts cannot read property 'series' of undefined
- How can I change the color of legend points?
- HighCharts Drag points saving with angularJs
- HighCharts Stacked column
- How to draw fibonacci retracement in highcharts
- Is it possible to create a multi level (stacked) donut chart with variable diameter on the last stack
- Adding intraday option to highcharts
- Highcharts sankey. Highlight all paths of a given category
- conditional marker colors in highcharts
- Highcharts / HighStock - How to parse JSON correctly
- HighChat Heatmap: Tooltip
- Trying to put points on a chart using a SharePoint list and Highcharts
- Highcharts free-form drawing content not getting exported
- Define a Global Custom Formatter for Highcharts
- HighCharts - Single legend for two columns in a Stack Column chart
- Issues with Netflix ICE
- Highcharts - Show tooltip on points click instead mouseover
- Highcharts: Difference between onMouseOver vs onContainerPointerMove?
- how to reset Highchart chart width in percentage on Button click
- Inserting Highcharts bar graph into sharepoint 2013 page
- SQL query for a graphic chart. Not sure about how to use JOIN in this case
- Set specific spacing between rows and columns in Highcharts heatmaps
- How do i format the x-labels correctly in this simple stockchart?
- Bugs on windrose in highcharts
- How to change the color of a custom renderer text to the title color in Highcharts