rotate
Rotates the element with the specified parameters.
Parameters
angle Number
The angle of rotation in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.
center kendo.dataviz.diagram.Point
The center of rotation.
Example
<div id="diagram"></div>
<script>
var shape1 = new kendo.dataviz.diagram.Rectangle({
x: 50,
y: 50,
width: 100,
height: 50,
fill: {
color: "#6EB5FF"
}
});
var group = new kendo.dataviz.diagram.Group();
group.append(shape1);
var rotationCenter = new kendo.dataviz.diagram.Point(150, 150);
group.rotate(45, rotationCenter);
console.log("Group rotated 45 degrees around center:", rotationCenter);
</script>
In this article