il paese di succisa

Template Joomla scaricato da Joomlashow

  • PDF

fungometro

  • Section: documenti - Category: documenti
  • Wednesday, 16 May 2012 17:38
  • Last Updated Wednesday, 16 May 2012 17:40

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);

 

 

Condividi su Facebook