Skip to content

nodeVisibility while loading initial data does not ender the graph property #726

@u19809

Description

@u19809

I have a bunch of data that I wish to visualize by applying filters based on node properties. For this I have implemented a function that returns TRUE if the node should be visible and registered that functoin with the nodeVisibility() method of the Graph.

when I set chart data with chartData and if the registered nodeVisibility function returns real visibility values (TRUE/FALSE), the rendering of the chart breaks. what happens is that invisible nodes are moved by the graph to very large Y and Z coordinates (sometimes 8 digits long!)

when I load the data while the nodeVisiblity function returns TRUE for all nodes (effectively not applying visibility rules), the chart renders just fine. Once loaded I can then apply filtering by reregistering the filter function to nodeVisibility() triggering a chart redraw, and then all non relevant nodes are properly hidden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions