Can you post the javascript that is rendered by the server?

On Tuesday, September 25, 2012 7:29:50 AM UTC-4, thecatz wrote:
>
> finaly ive done this, but the page is blank : 
>
> can you tel me where is the problem ?
>
> <html>
>   <head>
>  <script type='text/javascript' src='https://www.google.com/jsapi
> '></script>
> <script type='text/javascript'>
> google.load('visualization', '1', {packages: ['corechart']});
> google.setOnLoadCallback(drawChart);
>
> function drawChart () {
>     var data = new google.visualization.DataTable();
>     data.addColumn('string', 'Dim1');
>     data.addColumn('number', 'Metric1');
>  
>        <?php $sxml = simplexml_load_file('graph.xml');
> foreach ($sxml->Row as $row) {
>             echo "data.addRow(['{$row['Dim1']}', {$row['Metric1']}]);";
>         }
>     ?>
>     var chart = new google.visualization.BarChart('chart_div');
>      chart.draw(data, options);
> }
> </script>
>   </head>
>   <body>
>     <div id='chart_div'></div>
>   </body>
> </html>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/gATiY668MsgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to