container hidden does not initialize

270 views
Skip to first unread message

Carlos

unread,
Oct 13, 2010, 11:17:27 AM10/13/10
to Flotr Javascript Plotting Library
Hello,
I am new using Flotr.js and as I try to initialize a new graph. it
throws an exception 'The target container must be visible'. Why is not
posible to initialize a hidden graph? What if you need multiple graphs
hidden already initialized?. I have checked a previous version of
Flotr and it is allowed to do it.

Thanks in advance.

George Roberts

unread,
Oct 13, 2010, 3:51:26 PM10/13/10
to fl...@googlegroups.com
I beleive people have solved this by putting the x position of the canvas
far off the screen. For example
<canvas id='plot' style='left:-2000px'>
might work.

I think there are other solutions but if you search this list there was lots
of discussion about this. I think iframe's might be useful also. Where the
canvas is large but it is inside an iframe that is 0 pixels high and wide
(sort of invisible).

- George Roberts
http://gr5.org

--------------------------------------------------
From: "Carlos" <carlos.rod...@gmail.com>
Sent: Wednesday, October 13, 2010 11:17 AM
To: "Flotr Javascript Plotting Library" <fl...@googlegroups.com>
Subject: container hidden does not initialize

> --
> You received this message because you are subscribed to the Google Groups
> "Flotr Javascript Plotting Library" group.
> To post to this group, send email to fl...@googlegroups.com.
> To unsubscribe from this group, send email to
> flotr+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/flotr?hl=en.
>

Carlos Rodríguez

unread,
Oct 14, 2010, 4:11:11 AM10/14/10
to fl...@googlegroups.com
Thank you very much for the solution George,
it works perfectly, but i can not understand what is the funcionality of throwing an exception in that case?
Carlos
2010/10/13 George Roberts <gr-goog...@spamarrest.com>
Reply all
Reply to author
Forward
0 new messages