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

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 stroke color.

Default: "Black"

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

Defines the stroke dash type. The following dash types are supported:

  • "dash" - a line consisting of dashes
  • "dashDot" - a line consisting of a repeating pattern of dash-dot
  • "dot" - a line consisting of dots
  • "longDash" - a line consisting of long dashes
  • "longDashDot" - a line consisting of a repeating pattern of long dash-dot
  • "longDashDotDot" - a line consisting of a repeating pattern of long dash-dot-dot
  • "solid" - a solid line
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapeDefaults: {
        connectorDefaults: {
            stroke: {
                dashType: "longDash",
                color: "#9900cc"
            }
        }
    },
    shapes: [{
        id: "1",
        content: { text: "Monday" },
        x: 100,
        y: 20
    }],
    connections: [{
        from: "1"
    }]
});
</script>

Defines the thickness or width of the shape connectors stroke.

Default: 1

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