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({
    shapes: [{
      id: "1",
      x: 20,
      y: 40,
      content: {
        text: "Monday"
      },
      connectors: [
        {
          name: "top",
          stroke: {
            color: "red",
            width: 3
          },
          width: 15,
          height: 15
        }, {name: "right", width: 10, height: 10}]
    }, {
      id: "2",
      x: 200,
      y: 40,
      content: {
        text: "Tuesday"
      }
    }, {
      id: "3",
      x: 380,
      y: 200,
      content: {
        text: "Wednesday"
      }
    }],
    connections: [{
      from: "1",
      to: "2",
      fromConnector: "top"
    },{
      from: "2",
      to: "3"
    }],
    connectionDefaults: {
      endCap: "ArrowEnd"
    }
  });
</script>

Defines the stroke color.

Default: "Black"

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: { text: "Green Connector Borders" },
        x: 100,
        y: 20,
        connectors: [{
            name: "left",
            stroke: {
                color: "#00cc33"
            }
        }]
    }]
});
</script>

The connector stroke dash type.

The following dash types are supported:

  • "dash" - A line that consists of dashes
  • "dashDot" - A line that consists of a repeating pattern of dash-dot
  • "dot" - A line that consists of dots
  • "longDash" - A line that consists of a repeating pattern of long-dash
  • "longDashDot" - A line that consists of a repeating pattern of long-dash-dot
  • "longDashDotDot" - A line that consists of a repeating pattern of long-dash-dot-dot
  • "solid" - A solid line
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: { text: "Dotted Connector Borders" },
        x: 100,
        y: 20,
        connectors: [{
            name: "right",
            stroke: {
                dashType: "dot",
                color: "#cc3300"
            }
        }]
    }]
});
</script>

Defines the thickness or width of the shape connectors stroke.

Default: 1

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: { text: "Thick Connector Borders" },
        x: 100,
        y: 20,
        connectors: [{
            name: "auto",
            stroke: {
                width: 4,
                color: "#9900cc"
            }
        }]
    }]
});
</script>