shapes.fill.gradient.stops.colorString
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.
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: "#FF5733" },
{ offset: 1, color: "rgb(75, 192, 192)" }
]
}
}
}]
});
</script>
In this article