Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading Google core charts via Ajax in jQuery UI tabs
    primarykey
    data
    text
    <p><a href="https://stackoverflow.com/questions/3363875/loading-google-visualizations-via-ajax-in-jqueryui-tabs">Loading Google Visualizations via AJAX in jQueryUI tabs</a></p> <p>the link above is a similar doubt i have that is i need to use the google Visualization core charts with jqueryui tabs with ajax first it was not all working i had the same problem but with the solution provided in the link it worked partially it works perfectly for the Visualization chart provide in that example but not with the core charts that is column or pie charts is there some thing different i have to with those charts</p> <p>the index page contains this script</p> <pre><code>&lt;script src="js/jquery-1.9.1.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jquery-ui.js"&gt;&lt;/script&gt; &lt;script type='text/javascript' src='http://www.google.com/jsapi'&gt;&lt;/script&gt; $(function() { $("#switch").tabs({ beforeLoad: function( event, ui ) { ui.jqXHR.error(function() { ui.panel.html( "Couldn't load this tab. We'll try to fix this as soon as possible. " + "If this wouldn't be a demo." ); }); } }); }); //for swicthes google.load("visualization", "1", {packages:["corechart"]}); </code></pre> <p>and the ajax page contains</p> <pre><code>&lt;script type='text/javascript'&gt; google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Year', 'Sales', 'Expenses'], ['2004', 1000, 400], ['2005', 1170, 460], ['2006', 660, 1120], ['2007', 1030, 540] ]); var options = { title: 'Company Performance', hAxis: {title: 'Year', titleTextStyle: {color: 'red'}} }; var chart = new google.visualization.ColumnChart(document.getElementById('chart_div')); chart.draw(data, options); } &lt;/script&gt; </code></pre> <p>and the div to display -</p> <pre><code>&lt;div id='chart_div' style='width: 700px; height: 240px;'&gt;&lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload