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

EndCap

configuration

The end cap configuration or type name.

endCap

String|Object
<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      visual: function() {
        var group = new kendo.dataviz.diagram.Group();
        group.append(new kendo.dataviz.diagram.Path({
          data: 'M 0,0 L100,100',
          endCap: {
            type: "ArrowEnd",
            fill: "red"
          }
        }));
        return group;
      }
    }]
  });
</script>
String|Object

The end 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.Path({
          data: 'M 0,0 L100,100',
          endCap: {
            type: "ArrowEnd",
            fill: {
              color: "red",
              opacity: 0.8
            }
          }
        }));
        return group;
      }
    }]
  });
</script>
String|Object

The end 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.Path({
          data: 'M 0,0 L100,100',
          endCap: {
            type: "ArrowEnd",
            fill: "red",
            stroke: {
              color: "blue",
              width: 2
            }
          }
        }));
        return group;
      }
    }]
  });
</script>

The end cap type.

The supported values are:

  • "none": no cap
  • "ArrowEnd": 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.Path({
          data: 'M 0,0 L100,100',
          endCap: {
            type: "FilledCircle"
          }
        }));
        return group;
      }
    }]
  });
</script>