orientationString(default: "horizontal")

Specifies the layout orientation. The supported values are:

  • "horizontal" - the elements are arranged horizontally
  • "vertical" - the elements are arranged vertically

Example

<div id="diagram"></div>
<script>
var diagram = kendo.dataviz.diagram;
var rect = new diagram.Rect(0, 0, 300, 400);
var layout = new diagram.Layout(rect, {
    orientation: "vertical",
    spacing: 10,
    alignItems: "center"
});
console.log("Layout orientation set to vertical");
</script>
In this article
orientation
Not finding the help you need?
Contact Support