I faced the same problems. Here is the resolution.
If you want to use google visualization api in jQuery. Please follow the approach below
<script type="text/javascript"> //Load the Google visualization library google.load("visualization", "1.1", {packages:["bar"]}); $(document).ready(function() { google.setOnLoadCallback(function () { $('#Search').click(sendAndDraw); }); $("#Search").click(function (e) { var data = google.visualization.arrayToDataTable([ ['Technology', 'Beginner', 'Intermediate', 'Expert'], ['Java', 10, 40, 20], ['DOT NET', 11, 46, 25], ['Mainframe', 66, 11, 30], ['Oracle', 10, 50, 30] ]); var options = { chart: { title: 'Management Reports', subtitle: 'Classification of resources', } }; var chart = new google.charts.Bar(document.getElementById('chart_div')); chart.draw(data, options); });
Sures ramar
source share