A sequence diagram is an interaction diagram that shows how entities operate with one another and in what order. In this sample, we show the interaction between different people in a restaurant.

The diagram uses the Diagram.groupTemplate for "lifelines," Diagram.nodeTemplate for "activities," and Diagram.linkTemplate for "messages" between the entities. Also featured are a custom Link class and custom LinkingTool to draw links between lifelines and create activities at the end of the new link. Nodes use a binding function on the location property to ensure they are anchored to their lifeline.

Diagram Model saved in JSON format:
加入 GoJS 交流群
GoJS 交流群 (769862113)