Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 9: | Rivi 9: | ||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function <!--{$id|default:algalbarochart|escape:'html'}-->_jQueryTest() { | |||
if ( typeof window.jQuery == 'undefined' ) { | |||
setTimeout( function(){ <!--{$id|default:algalbarochart|escape:'html'}-->_jQueryTest() }, 300); | |||
} else { | |||
google.load('visualization', '1.0', {'packages':['corechart']}); | |||
google.setOnLoadCallback(<!--{$id|default:algalbarochart|escape:'html'}-->_func); | |||
} | |||
} | |||
setTimeout( function(){ <!--{$id|default:algalbarochart|escape:'html'}-->_jQueryTest() }, 300); | |||
function <!--{$id|default:algalbarochart|escape:'html'}-->_func() { | |||
// Load the Visualization API and the corechart package. | |||
google.charts.load('current', {'packages':['corechart']}); | |||
// Set a callback to run when the Google Visualization API is loaded. | |||
google.charts.setOnLoadCallback( <!--{$id|default:algalbaro|escape:'html'}-->_init ); | |||
} | |||
function <!--{$id|default: | function <!--{$id|default:algalbarochart|escape:'html'}-->_init() { | ||
var today = new Date(); | var today = new Date(); | ||


