Thanks. I have a question for u. Could u tell me some frameworks in php or javascript or ruby or python please El 18/06/2013 03:52, "Erka Bek" <erka2...@gmail.com> escribió:
> thanks > > On Thursday, October 20, 2011 10:07:05 PM UTC+8, asgallant wrote: >> >> If you really don't want to use JSON, you can build the javascript with >> PHP directly. As an example, put this inside the <script>: >> >> google.load('visualization', '**1', {packages: ['corechart']})**; >> google.setOnLoadCallback(drawC**hart); >> >> function drawChart () { >> var data = new google.visual**ization.DataTable(); >> data.addColumn('string', '**foo'); >> data.addColumn('number', '**bar'); >> <?php >> // query MySQL and put results into array $results >> foreach ($results as $row) { >> echo "data.addRow(['{$row['**foo']}', {$row['bar']}]);"; >> } >> ?> >> var chart = new google.visua**lization.BarChart('chart_div')**; >> chart.draw(data, <options>); >> } >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Visualization API" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > google-visualization-api+unsubscr...@googlegroups.com. > To post to this group, send email to > google-visualization-api@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.