xNumber

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

Example

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

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