score:-1
since you're using jquery, have you tried simply emptying the container div as follows before redrawing the chart?
$('#container').html();
perhaps this would be more beneficial since chart.destroy()
doesn't seem to be working in your case.
from http://api.jquery.com/html/#html2:
when .html() is used to set an element's content, any content that was in that element is completely replaced by the new content. additionally, jquery removes other constructs such as data and event handlers from child elements before replacing those elements with the new content.
Source: stackoverflow.com
Related Query
- Highcharts : using same div to load a chart multiple times with different series data
- How to have multiple highcharts with different series data in vuejs without repeating code
- Why does highcharts sankey chart sometimes combine multiple nodes with same node name but different Id into one and hide the lines?
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Timeline chart with highcharts using x-range with multiple stacks
- Highcharts problem with xAxis using multiple series
- Change chart type and redraw with multiple series in Highcharts
- Highcharts show the same yAxis start and end value with multiple data series
- How to use Highcharts React to create chart with multiple lines for same XAxis?
- How to render multiple HighCharts using a queue to prevent long load times
- Charts using Highcharts with multiple series from JSON
- Strange behavior with highcharts when using "column" type and multiple datetime series
- Multiple pie-charts in the same chart with HighCharts
- highcharts change chart type using dropdown for multiple series
- Basic Highcharts Multiple Series Chart Using JSON
- Highcharts same types of data with different series
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- How can I prepare a Group Stacked Bar Chart in Highcharts using multiple and different types of data?
- Highcharts - Same chart multiple times in same page
- Rendering Highcharts Chart in Multiple divs with same ID
- show two different series with different start intervals with the same xAxis highcharts
- How to render a bar chart with different series with only one entry per category in HighCharts
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- Highcharts column + line combination chart with multiple series
- Highcharts multiple series from JSON with different style depending on serie name
- 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 with JSON data and multiple series
- Using HighCharts and DotNet.HighCharts to "Play" Multiple Series
- Highcharts - multiple plot with the same x scale
More Query from same tag
- How to dynamically populate Highcharts column chart with two series
- Highcharts. How to set interval for PlotBand?
- Highcharts area fillOpacity do not work when changing the color
- trouble plotting multiple series of data on highstock
- How to enable marker on hover only for a range of points in highcharts
- highcharts-export-server with highcharts-regression plugin in a node module throws an error
- Java Server Based Highcharts and width limitation
- How to plot x axis next to 0th y axis tick label in case of negative data?
- Have an issue with JavaScript, AJAX code displaying data
- Highcharts Maps Drilldown Map From geojson
- Highchart Combination Chart Area Range not displaying on chart but line chart works
- How to adjust the height and width of background color in Highchart
- highcharts error #13 histogram
- Highstocks: How to define the span colors of a line instead of the individual line color
- How do I display csv data in Highcharts?
- how to hide column in highchart column type
- HighCharts populate Pie Chart with data from SQL Database
- Highcharts - Reset zoom in synchronised charts
- drilldown not working in piecharts in reactjs
- Twitter bootstrap & Highchart: horizontal scroll, responsive
- How to correctly format a PHP foreach loop?
- Highcharts - Add bar graph to a pie chart
- Remove DateTime from Highchart's x-axis
- Highcharts --> organisation chart --> toggle visibility of node
- How to move x-axis labels to the left using highcharts?
- Changing unit on y-axis from million (M) to show multimillion (MM) in HighCharts
- How can I do a padding between my highest x-value and the plot's right gap in Highcharts?
- Highcharts - How to get Max and Min value between 2 dates
- annotation in highchart doesn't work as expected
- Callback and Testing Highcharts