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

Fill

configuration

Defines the fill options of the connector.

fill

String|Object
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            fill: {
                color: "lightblue",
                opacity: 0.8
            }
        }
    }
});
</script>

Defines the fill color of the connector.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            fill: {
                color: "yellow"
            }
        }
    }
});
</script>

Defines the fill opacity of the connector.

Default: 1

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: "Shape 1",
        x: 100,
        y: 100
    }, {
        id: "2", 
        content: "Shape 2",
        x: 300,
        y: 100
    }],
    connections: [{
        from: "1",
        to: "2"
    }],
    connectionDefaults: {
        fromConnector: {
            fill: {
                color: "pink",
                opacity: 0.6
            }
        }
    }
});
</script>
In this article
fillfill.colorfill.opacity
Not finding the help you need?
Contact Support