-
vizulyNovember 20, 2017 at 3:10 pm #8101
Hello Pavan,
Thanks for the detailed description of the problem. You should definitely be able to run two tree’s side by side.
We need to use two different variables like viz and viz1 as you tried. You only need to reference one vizuly_core_min.js file.
This should work:
var viz = vizuly.viz.weighted_tree(document.getElementById(‘#viz_container’));
var viz1 = vizuly.viz.weighted_tree(document.getElementById(‘#viz_container1’));I am not sure why you are getting the error you are, perhaps it has to do with another part of how you are setting variables. A couple things to look for are making sure you are using two different data objects (they can be the same data values, but need to be distinct objects, not references to each other.) Also make sure the data is valid for each.
This is a little difficult to troubleshoot without seeing how you structure all of your code. Another suggestion is to bring all of the code into one file just to get it working, and once you have it working you can then refactor it into different .js files. If you are able to post a public example I can take a closer look at it and try to debug it.
Cheers,
Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io