The Diagram widget allows you to bind a customShapes collection to a data source. In this demo, the collection is bound to an array of employee objects. The Diagram creates a shape for every employee data item in the data source and adds the shapes to the "employees" category.
The toolbox option allows you to add custom categories to a data toolbox.
Users can drag data items from the toolbox and drop them onto a canvas to create a diagram.