x Number
(default: 0)
Defines the x-coordinate of the shape when added to the diagram.
Example - specifying shape horizontal position
<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: 200,
fill: "#c0f0fc",
type: "circle"
});
diagram.addShape(shape);
</script>