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

StartCap

configuration

The start cap configuration or type name.

startCap

String|Object
<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      x: 10,
      y: 10,
      visual: function() {
        var group = new kendo.dataviz.diagram.Group();
        group.append(new kendo.dataviz.diagram.Polyline({
          points: [{x: 0, y: 0}, {x: 50, y: 0}, {x: 100, y: 100}],
          startCap: {
            type: "ArrowStart",
            fill: "red"
          }
        }));
        return group;
      }
    }]
  });
</script>
String|Object

The start cap fill options or color.

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      visual: function() {
        var group = new kendo.dataviz.diagram.Group();
        group.append(new kendo.dataviz.diagram.Polyline({
          points: [{x: 0, y: 0}, {x: 50, y: 0}, {x: 100, y: 100}],
          startCap: {
            type: "ArrowStart",
            fill: "green"
          }
        }));
        return group;
      }
    }]
  });
</script>
String|Object

The start cap stroke options or color.

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      visual: function() {
        var group = new kendo.dataviz.diagram.Group();
        group.append(new kendo.dataviz.diagram.Polyline({
          points: [{x: 0, y: 0}, {x: 50, y: 0}, {x: 100, y: 100}],
          startCap: {
            type: "ArrowStart",
            stroke: "red"
          }
        }));
        return group;
      }
    }]
  });
</script>

The start cap type.

The supported values are:

  • "none": no cap
  • "ArrowStart": a filled arrow
  • "FilledCircle": a filled circle

Default: "none"

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      visual: function() {
        var group = new kendo.dataviz.diagram.Group();
        group.append(new kendo.dataviz.diagram.Polyline({
          points: [{x: 0, y: 0}, {x: 50, y: 0}, {x: 100, y: 100}],
          startCap: {
            type: "FilledCircle",
            fill: "cyan"
          }
        }));
        return group;
      }
    }]
  });
</script>