passing a parameter to a callback function in google Visualizations
This is how google Visualization examples are.
google.load("visualization", "1", {packages:["table"], callback: drawVisualization});
or
google.load('visualization', '1', {'packages':['corechart']});
google.setOnLoadCallback(drawVisualization);
How can I pass a parameter to the callback function drawVisualization开发者_开发问答?
google.setOnLoadCallback(function() {
drawVisualization(your_parameter);
});
精彩评论