EndCap.stroke
configurationThe end cap stroke options or color.
endCap.stroke
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.Polyline({
points: [{x: 0, y: 0}, {x: 50, y: 0}, {x: 100, y: 100}],
endCap: {
type: "ArrowEnd",
stroke: "green"
}
}));
return group;
}
}]
});
</script>
endCap.stroke.color
StringThe end cap stroke 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}],
endCap: {
type: "ArrowEnd",
stroke: {
color: "purple"
}
}
}));
return group;
}
}]
});
</script>
endCap.stroke.dashType
StringThe end cap stroke dash type.
<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}],
endCap: {
type: "ArrowEnd",
stroke: {
color: "black",
dashType: "dash"
}
}
}));
return group;
}
}]
});
</script>
endCap.stroke.width
NumberThe end cap stroke width.
<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}],
endCap: {
type: "ArrowEnd",
stroke: {
color: "black",
width: 3
}
}
}));
return group;
}
}]
});
</script>