stroke Object

Defines the stroke configuration.

stroke.color String

Defines the stroke or line color of the connection.

Example - setting the stroke of a Connection

<div id="diagram"></div>
    var Point = kendo.dataviz.diagram.Point;
    var diagram = $("#diagram").kendoDiagram({ }).getKendoDiagram();
    var shapeA = diagram.addShape(new Point(100, 100));
    var shapeB = diagram.addShape(new Point(400, 100));
    var connection = diagram.connect(shapeA, shapeB, { stroke: { color: "red" } });
In this article
Not finding the help you need? Improve this article