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: [{
type: "rectangle",
x: 100,
y: 100,
width: 200,
height: 100,
fill: {
gradient: {
type: "linear",
start: [0, 0],
end: [1, 0],
stops: [
{ offset: 0, color: "red" },
{ offset: 0.5, color: "#ff0000" },
{ offset: 1, color: "rgb(255, 0, 0)" }
]
}
}
}]
});
</script>