Mi ingles es muy malo.

Gracias por la atención, asgallant.

Quiero crear un grafico de intersecciones. Lo he logrado. Ahora la idea es 
dividir en 2. Con un color en base a un campo de la tabla y con otro color en 
base a ese mismo campo.

Ejemplo.

> 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


agregar,

data.addColumn(’string’,’alianza’);

Datos de la Tabla

Si alianza = ‘alianza’ uso color Rojo y si no uso color Azul.

Dividir en 2 grupos el grafico.

Logras entender?

Muchisimas gracias!!



El 02/11/2013, a las 12:12, asgallant <[email protected]> escribió:

> I'm sorry, but I don't understand your questions.  If you ask the questions 
> in your native language, I can try to have them translated.
> 
> On Friday, November 1, 2013 11:29:00 PM UTC-4, Santiago Fernandez wrote:
> 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 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/XXJkiugovDA/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

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