different id/instances. But it still doesn't seem to work. Unless i'm
missing something obvious. Any hints/tips?
On Oct 14, 5:51 pm, Nico Garcia Belmonte <
phil...@gmail.com> wrote:
> Hi,
>
> Yes, you need to assign unique ids for the two JSON tree instances. You're
> probably using the same JSON tree for the two visualizations, or the JSON
> structure for those two visualizations share the same ids.
> I will try to make easier to work with the same JSON structure on multiple
> canvas widgets, but for the only constraint is that you have to have unique
> ids for both canvas widgets.
>
> On Wed, Oct 14, 2009 at 4:16 AM, venkatesh kavuluri <
>
>
>
>
venkatesh.kowl...@gmail.com> wrote:
> > Hi Nico,
>
> > I created two canvas widgets on the same page each with a different space
> > tree. But, when I click on a node of tree-1 (in canvas-1), it is disturbing
> > the tree-2 (in canvas-2) as well. Maybe I was not implementing the canvas
> > instance separation properly. Is there any thing in particular we need to
> > take care of to insulate the two trees !
>
> > Thank You.
> > Venkat
>
> > On Tue, Oct 13, 2009 at 2:27 PM, Nico Garcia Belmonte <
phil...@gmail.com>wrote:
>
> >> Hi,
>
> >> I'm not sure what you mean by "multiple instances". You should be able to
> >> create multiple visualizations on the same page without problems. Here's an
> >> example:
>
> >>
http://thejit.org/Jit/Examples/Other/example1.html
>
> >> However you can't create multiple visualizations in the same Canvas
> >> Widget, unless one visualization is used for node rendering purposes like in
> >> these examples:
>
> >>
http://thejit.org/Jit/Examples/Other/example2.html
>
> >>
http://thejit.org/Jit/Examples/Other/example3.html
>
> >> In most cases you don't need to draw two or more visualizations in the
> >> same Canvas Widget, unless they interact with each other in some particular
> >> way. The usual approach for drawing multiple visualizations on the same page
> >> would be to create multiple Canvas Widgets or to add one visualization as
> >> node rendering method for another visualization.
>
> >> Hope it helps,
>