Skip to main content

onChartRerenderingStarted

Type: function(chart)

Fired right before the chart rerenders. A rerendering can be triggered manually - by invoking chart.rerender() - or automatically.

Automatic rerendering happens on iOS, when the user presses the back or forward button in the browser. The browser then loads the page from a back-forward cache. We trigger a rerendering of the chart to make sure the right objects are available and unavailable for selection.

Before rerendering, we deselect any previously selected objects (which fires onObjectDeselected events). If you need to do more cleanup in your page, you can pass in onChartRerenderingStarted.

onChartRerenderingStarted: function (chart) {
// re-init host page before chart rerenders
}