yNumber

The y coordinate of the point.

Example

<div id="diagram"></div>
<script>
// Access and modify the y coordinate of a point
var point = new kendo.dataviz.diagram.Point(80, 120);
console.log("Initial y:", point.y); // Output: 120

// Modify the y coordinate
point.y = 300;
console.log("Modified y:", point.y); // Output: 300

// Use the modified point to reposition a shape
$("#diagram").kendoDiagram({
    shapes: [{
        id: "shape1",
        x: point.x,
        y: point.y, // Now positioned at y=300
        width: 90,
        height: 45,
        type: "rectangle"
    }]
});
</script>
In this article
y
Not finding the help you need?
Contact Support