This text is displayed if your browser does not support the Canvas HTML element.

This sample is derived from the State Chart sample. This makes use of the new GraphLinksModel.linkKeyProperty property and the Model.toIncrementalJson and Model.applyIncrementalJson methods. It also demonstrates custom functions for Model.makeUniqueKeyFunction and GraphLinksModel.makeUniqueLinkKeyFunction, which assign odd numbers to new node data and even numbers to new link data. Unlike most models, this example uses "id" as the name of the Model.nodeKeyProperty rather than "key".

Last Transaction saved in incremental JSON format: Diagram Model saved in JSON format:

GoJS version 2.3.3. Copyright 1998-2023 by Northwoods Software.

View this sample page's source on GitHub