Edit this page

shapes.type String (default: "rectangle")

Specifies the type of the Shape using any of the built-in shape type.

  • "rectangle" - The default option
  • "circle" - A circle/ellipse
  • "image" - An image

Example - customizing shape types

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    layout: "tree",
    shapes: [{
      id: "1",
      content: {
        text: "Step 1"
      }
    }, {
      id: "2",
      content: {
        text: "Step 2"
      },
      type: "circle"
    }, {
      id: "3",
      type: "image",
      source: "https://demos.telerik.com/kendo-ui/html5-dashboard-sample-app/Content/Products/4.jpg"
    }],
    connections: [{
      from: "1",
      to: "2"
    },{
      from: "2",
      to: "3"
    }],
    connectionDefaults: {
      endCap: "ArrowEnd"
    }
  });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy