score:1
Accepted answer
From discussion in comments:
It should be possible to use Highcharts.charts array and inside this array find specific chart (if exist) for destroy:
function init_graph() {
var hc_options = {
chart: {
renderTo: 'container'
},
series: [{
name: 'USD to EUR',
data: usdeur
}]
};
var chart=new Highcharts.Chart(hc_options);
}
var sint = setInterval(function(){
Highcharts.charts[0] && Highcharts.charts[0].destroy();
init_graph();
}, 4000);
Example: http://jsfiddle.net/teg540zh/1/
Source: stackoverflow.com
Related Query
- HighCharts - destroy before writing a new chart (to prevent memory leak)
- Huge memory leak in Highcharts - Create and destroy lacks memory?
- Highcharts saying undefined is not a function when trying to add a new chart
- Highcharts / jQuery - destroy and rebuild chart with original options
- Resize a chart before printing with Highcharts
- HighCharts Stock Chart error code 18
- how to add new index Highcharts column drilldown chart
- Highcharts display label for pie chart using html table as data source
- I am using click event to trigger a new page to generate the drill down data from highcharts however the entire chart is being generated
- Use exported data from Highcharts Editor in a new React chart
- Highcharts export chart new window/tab
- Add new series to the top of a highcharts stacked column chart
- Highcharts - prevent pie chart from overlaping a line chart?
- Highcharts Angular update chart with new options - including linked series
- Highcharts cloud issue with data source when duplicating chart
- Memory leak using Highcharts + AngularJS
- Is it better to update a Highcharts chart or destroy and recreate it?
- Does highcharts have a callback function for before full chart reload (this should not include legends disable)?
- How do I stop Highcharts creating a new gridline at the extremities of the chart unless a data point exceeds the min/max gridline?
- HighCharts - When I download csv, can I switch data source to new one?
- Highcharts memory leak when using jQuery 2.X
- How to create a column range chart in Highcharts using range and navigator functions?
- How can I get access to a Highcharts chart through a DOM-Container?
- Highcharts chart option backgroundColor:'transparent' showing black on IE 8
- Highcharts - redraw() vs. new Highcharts.chart
- How to set Highcharts chart maximum yAxis value
- HighCharts turn animation false for line chart
- Programmatically change a chart title in highcharts
- Reload chart data via JSON with Highcharts
- How to display the value instead of percentage in a pie chart using jquery Highcharts
More Query from same tag
- How can I move columns to the right in a Highcharts chart?
- Highcharts column category in X-axis using different Y-axis
- Using html2canvas to render a highcharts chart to pdf doesn't work on IE and Firefox
- Highcharts.js, how to zoom in on one chart to resize another as Stackoverflow has done?
- Panning in Highcharts (In Mobile Devices)
- Obtaining highcharts image URL from PHP
- Angular Highcharts - How to clone chart dynamically
- Binding Data to Asp.net HighCharts using Jquery Json
- Read back chart details from highchart in json
- Data not showing with the Timestamp Values : Highcharts
- highcharts arearange to turn off x-axix line
- Highcharts reflow() after moving Y Axis to the opposite side
- Drilldown in grouped column chart with categories
- Is there a better way to (Un)select all LegendItems in HighCharts LineChart?
- how to add highcharts in Datatables child row , from google sheets?
- Parsing Data From HTML Table
- Highcharts duplicating Legend Tags
- Highcharts size doesn't change on div.animate()
- Changing Series Name and Color in Highcharts
- Highcharts - setData() not updating Column Graph Correctly - stumped
- In Column Highcharts, Custom Add text with specific offset
- How to customize annotation's layout in HighCharts
- highcharts legend color customization
- Highcharts define colors for each data point in a pair
- Closely-spaced datalabels are hidden
- stepped color shading in highcharts doughnut chart
- Highcharts do not hold all the values of stacked columns chart with data time axes
- Wrapping a HighChart in AngularJS
- apply new theme without reloading the charts in highcharts
- Highcharts Displaying same data repeatedly