Skip to content

How to access novias node relationships data in the labels function? #345

Answered by ra-haik
ra-haik asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you very much for your help, here is the code that is working.

        const viz = new NeoVis(config);
        viz.render();

        viz.registerOnEvent('completed', () => {
            console.log("Graph visualization completed.");

            viz.nodes.forEach((node) =>
            {
                let newSize = 0;

                if (node.group == 'ActiveDirectoryDomain') {
                    viz.nodes.update({ id: node.id, size: 10 });
                }
                else if (node.group == 'User') {
                    viz.nodes.update({ id: node.id, size: 5 });
                }
                else {

                    viz.edges.forEach((edge) => {

Replies: 1 comment 29 replies

Comment options

You must be logged in to vote
29 replies
@thebestnom
Comment options

@ra-haik
Comment options

@thebestnom
Comment options

@ra-haik
Comment options

Answer selected by ra-haik
@thebestnom
Comment options

@ra-haik
Comment options

@thebestnom
Comment options

@ra-haik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants