Skip to content

Instantly share code, notes, and snippets.

@tswistak
Created June 4, 2018 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tswistak/fb9d01017624f7b3bb82ac9766b49c39 to your computer and use it in GitHub Desktop.
Save tswistak/fb9d01017624f7b3bb82ac9766b49c39 to your computer and use it in GitHub Desktop.
GoJS tutorial part 1, listing 3
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