score:7

Accepted answer

Just place

var chart;

outside all functions, next to your document ready handler to make it global.

EDIT:

Also, add a reference inside the load call

load: function() {
    chart = this; // `this` is the reference to the chart
    requestData();
}

Related Query

More Query from same tag