rotationObject
The shape rotation settings.
Example - creating a rotated shape
<div id="diagram"></div>
<script>
var Shape = kendo.dataviz.diagram.Shape;
$("#diagram").kendoDiagram();
var diagram = $("#diagram").data("kendoDiagram");
var shape = new Shape({
id: 1,
x: 40,
y: 40,
fill: "#c0f0fc",
rotation: {
angle: 45
}
});
diagram.addShape(shape);
</script>
rotation.angleNumber
(default: 0)
The rotation angle.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [{
id: "1",
content: {
text: "Rotated Shape"
},
rotation: {
angle: 45
}
}]
});
</script>
In this article