Dear,

I'm not a developer. Then, a lot of effort to achieve graph a Scratter with 
the following code.

This One...

<script type="text/javascript">
> google.load("visualization", "1", {packages:["corechart"]});
> google.setOnLoadCallback(drawChart);
> function drawChart() {
> var data = new google.visualization.DataTable();
> data.addColumn('number', 'coox');
> data.addColumn('number', 'cooy');
>     data.addColumn({type:'string', role:'tooltip', 'jugador': {'html': 
> true}}); // tooltip for first series
>     <?php
>     $listar_grafico = mysql_query("SELECT * FROM jugadores");
>     while ($row = mysql_fetch_array($listar_grafico)) {
>     ?>
>     data.addRow([<?=$row['coox']?>, <?=$row['cooy']?>, 
> '<?=$row['jugador']?>']);
>     <?
>     }
>     mysql_free_result($listar_grafico);
>     ?> 
>     var options = {
>     title: 'Mapa de Alianza',
>     hAxis: {title: 'Eje X', minValue: 0, maxValue: 1020},
>     vAxis: {title: 'Eje Y', minValue: 0, maxValue: 1020},
>     pointSize:4,
>     legend: 'none'
>     };
>     var chart = new 
> google.visualization.ScatterChart(document.getElementById('chart_div'));
>     chart.draw(data, options);
>     }
>  </script>


I have some form of cross-checking with another?

Or failing and add one more and with an IF color to the two groups of the 
same DataTable?

Do you under stand me?

Thanks!!

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to