rotation Object

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.angle Number (default: 0)

The rotation angle.

In this article
Not finding the help you need? Improve this article