HighCharts: subsequent chart erases previous chart
HighCharts: subsequent chart erases previous chart I am having a problem of creating Highcharts dynamically - from asynchronous ajax calls: sometimes subsequent chart erases previous chart from a different container. This is the scenario: 1. From 6 to 8 charts are created simultaneously from ajax async data. Each chart is assigned to a dynamic array and destroys before rendering: if (charts[chID] != null) { charts[chID].destroy(); } Then we create a chart: charts[chID] = new Highcharts.Chart(chartOptions); As I mentioned all these charts are created simultaneously from async ajax calls. The problem is that some charts are missing after the first run ; after that all charts are rendered properly. Debugging the code shows that the missing charts are actually created, but then erased by subsequent charts. The screenshots from Chrome dev. tools: Three charts (4,5,6) are OK Then another chart (1) is added and erases chart 4: These 'missing' charts happen quite irregularity - som...
