shapes.fill.gradient.stopsArray
The array of gradient color stops.
Example
<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>
In this article