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);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With