shapes.fill String|Object
Defines the background fill options of the shape.
Example - customizing shapes background
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
layout: "tree",
shapes: [{
id: "1",
content: {
text: "Monday"
},
fill: {
color: "lime"
}
}, {
id: "2",
content: {
text: "Tuesday"
},
fill: {
color: "blue",
opacity: 0.5
}
}, {
id: "3",
fill: {
opacity: 0.5
},
content: {
text: "Wednesday"
}
}],
connections: [{
from: "1",
to: "2"
},{
from: "2",
to: "3"
}],
connectionDefaults: {
endCap: "ArrowEnd"
}
});
</script>
Related Properties
- shapes.fill.color
- shapes.fill.opacity
- shapes.fill.gradient
- shapes.fill.gradient.type
- shapes.fill.gradient.center
- shapes.fill.gradient.radius
- shapes.fill.gradient.start
- shapes.fill.gradient.end
- shapes.fill.gradient.stops
- shapes.fill.gradient.stops.offset
- shapes.fill.gradient.stops.color
- shapes.fill.gradient.stops.opacity