New to Kendo UI for jQueryStart a free 30-day trial

Defines the default options for the shape connectors.

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapeDefaults: {
      connectorDefaults: {
        width: 10,
        height: 10,
        fill: {
          color: "green",
          opacity: 0.7
        },
        hover: {
          fill: {
            color: "lightblue"
          },
          stroke: {
            color: "yellow",
            dashType: "dot"
          }
        },
        stroke: {
          width: 2,
          color: "yellow",
          dashType: "solid"
        }
      }
    },
    shapes: [{
      id: "1",
      content: {
        text: "Monday"
      },
      x: 100,
      y: 20
    }, {
      id: "2",
      content: {
        text: "Tuesday"
      },
      x: 250,
      y: 20
    }, {
      id: "3",
      content: {
        text: "Wednesday"
      },
      x: 250,
      y: 200
    }],
    connections: [{
      from: "1",
      to: "2"
    },{
      from: "2",
      to: "3"
    }],
    connectionDefaults: {
      endCap: "ArrowEnd"
    }
  });
</script>

Defines the fill options of the shape connectors.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            fill: {
                color: "#ff6600",
                opacity: 0.8
            }
        }
    },
    shapes: [{
        id: "1",
        content: { text: "Monday" },
        x: 100,
        y: 20
    }],
    connections: [{
        from: "1"
    }]
});
</script>

Defines the height of the shape connectors.

Default: 8

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            height: 15
        }
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } }
    ]
});
</script>

Defines the hover configuration of the shape connectors.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            hover: {
                fill: {
                    color: "lightcyan",
                    opacity: 0.7
                },
                stroke: {
                    color: "teal",
                    width: 2
                }
            }
        }
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } }
    ]
});
</script>

Defines the offset distance from the shape edge.

Default: 10

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            offset: 15
        }
    },
    shapes: [{
        id: "1",
        content: { text: "Shape" },
        x: 100,
        y: 20
    }],
    connections: [{
        from: "1"
    }]
});
</script>

Defines the stroke options of the shape connectors.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            stroke: {
                color: "#cc0000",
                width: 2,
                dashType: "dot"
            }
        }
    },
    shapes: [{
        id: "1",
        content: { text: "Monday" },
        x: 100,
        y: 20
    }],
    connections: [{
        from: "1"
    }]
});
</script>

Defines the width of the shape connectors.

Default: 8

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            width: 12
        }
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } }
    ]
});
</script>