javascript - Show data after query - Google Charts -


i have data-table (in google chart) , want send url connecting data-table , sending query , after show data in page web, javascript. how can it?

here code.

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">   <head>     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>     <title>       google visualization api sample     </title>     <script type="text/javascript" src="http://www.google.com/jsapi"></script>     <script type="text/javascript">       google.load('visualization', '1.0', {packages: ['corechart']});     </script>     <script type="text/javascript">        function sendquery(yyy)  {            var query = new google.visualization.query('http://localhost:8080/xxx-datasource/datasource?table=yyy');            //query.setquery('select zone_name, sum(cost) group zone_name');            console.log(query);        }       </script>   </head> </html> 

assuming data source on server compatible visualization api queries, use https://code.google.com/apis/ajax/playground/?type=visualization#using_the_query_language, substituting own url, select statement, , chart code.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -