How to specify target div

266 views
Skip to first unread message

Hanjun

unread,
Sep 12, 2010, 10:53:49 AM9/12/10
to protovis
Examples on your website put the codes inside the #fig div tag. I am
wondering if I can separate my JS codes and do something like
vis.render("foo") where <div id="foo"></div>

Mike Bostock

unread,
Sep 12, 2010, 11:37:29 AM9/12/10
to prot...@googlegroups.com
Use the root panel's canvas property.

Mike

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

Michael Heilemann

unread,
Sep 12, 2010, 4:01:12 PM9/12/10
to protovis
Like so:

vis = new pv.Panel().canvas('timeline')

Where 'timeline' is the ID of an HTML element.
Reply all
Reply to author
Forward
0 new messages