yNumber

The y-coordinate of the top-left corner of the rectangle.

Example

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "rect1",
        type: "rectangle",
        x: 50,
        y: 75,
        height: 100,
        width: 150
    }]
});

var diagram = $("#diagram").getKendoDiagram();
var shape = diagram.getShapeById("rect1");
var rect = new kendo.dataviz.diagram.Rect(50, 75, 150, 100);
console.log("Rectangle y-coordinate:", rect.y);
</script>
In this article
y
Not finding the help you need?
Contact Support