Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display two dot graphs on a page #20

Closed
logust79 opened this issue Jul 4, 2016 · 1 comment
Closed

Display two dot graphs on a page #20

logust79 opened this issue Jul 4, 2016 · 1 comment

Comments

@logust79
Copy link
Contributor

logust79 commented Jul 4, 2016

require(["renderer"],
    function (renderer) {
        // initialize first svg stage
        zoomFunc = renderer.init({element:"#dot1});
        // update stage with new dot source
        renderer.render({source:dot1, labelAttributer: myLabelAttributer, callBack:callback});
});
require(["renderer"],
    function (renderer) {
        // initialize second svg stage
        zoomFunc = renderer.init({element:"#dot2"});
        // update stage with new dot source
        renderer.render({source:dot2, labelAttributer: myLabelAttributer, callBack:callback});
});

This will end up only dot2 got shown on the page.

Is there a way to display two dot graphs on a page at the same time?

@logust79
Copy link
Contributor Author

logust79 commented Jul 4, 2016

Drawing two graphs on a page is not good anyway. Mess up with zoom behaviour somehow.

@logust79 logust79 closed this as completed Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant