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.