fungometro

Example Chart var queryString = ''; var dataUrl = ''; function onLoadCallback() { if (dataUrl.length > 0) { var query = new google.visualization.Query(dataUrl); query.setQuery(queryString); query.send(handleQueryResponse); } else { var dataTable = new google.visualization.DataTable(); dataTable.addRows(1); dataTable.addColumn('number'); dataTable.setValue(0, 0, 70); draw(dataTable); } } function draw(dataTable) { var vis = new google.visualization.ImageChart(document.getElementById('chart')); var options = { chs: '300x150', cht: 'gm', chco: 'FF9900', chd: 't:70', chdl: '', chl: '' }; vis.draw(dataTable, options); } function handleQueryResponse(response) { if (response.isError()) { alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage()); return; } draw(response.getDataTable()); } google.load("visualization", "1", {packages:["imagechart"]}); google.setOnLoadCallback(onLoadCallback);