connectionDefaults.type String (default: "cascading")

Specifies the connections type. The supported values are:

  • "Polyline" - connects the defined intermediate points.
  • "Cascading" - discards given points and defines a cascading path between the endpoints.

Example - using polyline connections with intermediate points

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes:[
      {
        id:"1",
        content:{
          text: "State 1"
        },
        x: 20,
        y: 20
      },
      {
        id:"2",
        content: {
          text: "State 2"
        },
        x: 300,
        y: 100
      }
    ],
    connections:[
      {
        from: "1",
        to: "2",
        points: [
          {x: 150, y: 20},
          {x: 150, y: 150}
        ],
        type: "polyline"
      }
    ]
  });
</script>
In this article