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

The array of gradient color stops.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        x: 100,
        y: 100,
        content: { text: "Shape 1" },
        fill: {
            gradient: {
                type: "linear",
                stops: [
                    { offset: 0, color: "red" },
                    { offset: 1, color: "blue" }
                ]
            }
        }
    }]
});
</script>

The color in any of the following formats:

| Format | Description | --- | --- | --- | red | Basic or Extended CSS Color name | #ff0000 | Hex RGB value | rgb(255, 0, 0) | RGB value

Specifying 'none', 'transparent' or '' (empty string) will clear the fill.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        x: 100,
        y: 100,
        content: { text: "Shape 1" },
        fill: {
            gradient: {
                type: "linear",
                stops: [
                    { offset: 0, color: "#FF5733" },
                    { offset: 1, color: "rgb(75, 192, 192)" }
                ]
            }
        }
    }]
});
</script>

The stop offset from the start of the element. Ranges from 0 (start of gradient) to 1 (end of gradient).

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        x: 100,
        y: 100,
        content: { text: "Shape 1" },
        fill: {
            gradient: {
                type: "linear",
                stops: [
                    { offset: 0.2, color: "red" },
                    { offset: 0.8, color: "blue" }
                ]
            }
        }
    }]
});
</script>

The fill opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        x: 100,
        y: 100,
        content: { text: "Shape 1" },
        fill: {
            gradient: {
                type: "linear",
                stops: [
                    { offset: 0, color: "red", opacity: 1 },
                    { offset: 1, color: "blue", opacity: 0.3 }
                ]
            }
        }
    }]
});
</script>