Gráfica de Línea con particularidades

53 views
Skip to first unread message

Claudio Saldaña

unread,
Feb 20, 2012, 1:14:18 PM2/20/12
to Google Visualization API
Estimados:
Tengo que hace un Gráfico de Líneas que cumpla ciertas reglas y hasta
ahora no he podido lograrlo, les pido su ayuda.

- Se utilizan valores numéricos, positivos y Negativos
- El cero es considerado un valor válido dentro de la gráfica
- Se necesita reflejar omisión de datos en algunos casos
- El eje X es Alfanumérico, mientras que el eje Y es Numérico

Por favor si pudieran orientarme, les agradecería mucho.

Saludos
Claudio S.

MC Get Vizzy

unread,
Feb 21, 2012, 5:39:13 AM2/21/12
to google-visua...@googlegroups.com
Most of these things should not be a problem for Google Charts.  In terms of missing data, you can include nulls in your DataTable and set {interpolateNulls: true} in your options.  Are you getting an error?


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Claudio Saldaña

unread,
Feb 21, 2012, 7:34:47 AM2/21/12
to google-visua...@googlegroups.com
Estimado, gracias por la ayuda

Mi problema es que al querer implementar todas las opciones descritas en un gráfico lineal no funciona.
por ejemplo, en ocasiones un gráfico lineal no me deja incorporarle números negativos, otra opción es que para marcar un valor como null debo incorporarle "-1" pero para mi eso es un valor representativo y no un null
ojala me entiendas

Gracias

Tienes un formato de como establecer el código de la gráfica ya que yo la hago de la siguiente forma:
&chs=200x290&cht=ls&chco=FF0000,0000FF,008000&chds=-5,100&chd=t:3,6,0,6,59|3,5,6,1,0|6,8,9,2,6&chg=0,5,0,0&chls=1|1|1&chma=40,20,20,30

Saludos
--
Claudio Saldaña Yáñez

asgallant

unread,
Feb 21, 2012, 3:50:59 PM2/21/12
to google-visua...@googlegroups.com
I don't know how to fix the problem in the image charts, but those issues are not a problem in the visualization charts, see this example here: http://jsfiddle.net/AXZyw/

asgallant

unread,
Feb 21, 2012, 3:54:12 PM2/21/12
to google-visua...@googlegroups.com
If you need to use the image charts, you can use the ImageCharts wrapper (http://code.google.com/apis/ajax/playground/?type=visualization#image_line_chart) for the visualization API (which makes some of the hard things easier to do), or you can ask around the Image charts forum for help (http://groups.google.com/group/google-chart-api).
Reply all
Reply to author
Forward
0 new messages