Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Load data problems in virtualizedForceLayout

$
0
0

@Yamasan wrote:

Hello.

I'm using virtualizedForceLayout sample. I made a little change for it. Instead of Loading data when init happens, I have a html button to fire load function when clicked. And i also changed load function like this:

function load() {
            generateNodes(myWholeModel, 1234, 1234);
            generateLinks(myWholeModel, 1, 5);

            myDiagram.layoutDiagram(true);
}

It didn't work well. Some nodes had no links and error happend:

Uncaught TypeError: Cannot read property 'ensureBounds' of null

Please tell me why, thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles