Created
June 4, 2018 09:29
-
-
Save tswistak/fb9d01017624f7b3bb82ac9766b49c39 to your computer and use it in GitHub Desktop.
GoJS tutorial part 1, listing 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diagram.model = $(go.GraphLinksModel, { | |
nodeDataArray: [ | |
{key: 1, category: 'first'}, | |
{key: 2, category: 'second'}, | |
{key: 3, category: 'second'}, | |
{key: 4, category: 'third'} | |
], | |
linkDataArray: [ | |
{from: 1, to: 2}, | |
{from: 2, to: 3}, | |
{from: 1, to: 3}, | |
{from: 3, to: 4} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment