Skip to main content


the default type of a shape

defaultShapeType?: string;
Default value: "rectangle" (in the default mode of Diagram), "card" (in the org chart mode of Diagram), "topic" (in the mindmap mode of Diagram)


const diagram = new dhx.Diagram("diagram_container", {
defaultShapeType: "img-card"

Related sample: Diagram. Org chart mode. Shapes with images

This value is applied, if the shape object doesn't contain the "type" property.

Default Shapes