Re: No puedo clickear una opcion de poca cantidad

30 views
Skip to first unread message

asgallant

unread,
Sep 6, 2012, 6:32:28 PM9/6/12
to google-visua...@googlegroups.com, in...@psi-web.co
If I understood you correct, you have a BarChart where some bars are too small to click on, and you want to know how to make them clickable, correct?

If so, then there are two options to handle this:

1) use a logScale axis.  This will make small values appear relatively large
2) change the value used to calculate the size of the bars for drawing the chart, but keep the formatted value the same.

Here is an example using both methods: http://jsfiddle.net/asgallant/b4yCL/ 

On Thursday, September 6, 2012 4:28:06 PM UTC-4, james0928 wrote:
Cordial saludo, bueno mi problemas es que estoy generando una grafica de barras pero hay unas opciones que contienen muchos registros y otras que contienen muy pocos, con las que teinen muchos registros no hay problema para darle click, pero con las barras mas pequeñas debido al tamaño no se dejan seleccionar, espero me entiendan

Desde ya gracias por sus aportes

asgallant

unread,
Sep 6, 2012, 8:29:18 PM9/6/12
to google-visua...@googlegroups.com, in...@psi-web.co
If you post your code, I'll take a look and see what's going on.

On Thursday, September 6, 2012 7:01:04 PM UTC-4, james0928 wrote:
Efectivamente ese es mi problema, con logscale como lo mencionas funciona perfecto, pero estaba intentando utilizar la segunda opcion para ver cual era mas apropiada pero arroja el siguiente error Type mismatch. Value 10 does not match type number

james0928

unread,
Sep 7, 2012, 9:23:28 AM9/7/12
to google-visua...@googlegroups.com, in...@psi-web.co
http://jsfiddle.net/asgallant/b4yCL/  en este link estan los dos ejemplos de como remediar el problema de las barras cortas, la primera opcion funciona correctamente, pero la segunda es decir la grafica tres sale con el error mencionado

asgallant

unread,
Sep 7, 2012, 10:27:10 AM9/7/12
to google-visua...@googlegroups.com, in...@psi-web.co
Sorry about that, I must have made a change and saved it without testing to see if it worked.  Fixed code is here: http://jsfiddle.net/asgallant/b4yCL/2/ 

james0928

unread,
Sep 7, 2012, 10:30:48 AM9/7/12
to google-visua...@googlegroups.com, in...@psi-web.co
Muchas gracias, de verdad me a sido de mucha ayuda es justo lo que buscaba

asgallant

unread,
Sep 7, 2012, 1:53:05 PM9/7/12
to google-visua...@googlegroups.com, in...@psi-web.co
You're welcome.
Reply all
Reply to author
Forward
0 new messages