points
Gets or sets the polyline points.
Parameters
points Array
The new points.
Returns
Array The current points.
Example
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [{
visual: function() {
var group = new kendo.dataviz.diagram.Group();
var polyline = new kendo.dataviz.diagram.Polyline({
points: [{x: 0, y: 0}, {x: 50, y: 0}, {x: 100, y: 100}]
});
group.append(polyline);
// Get current points
var currentPoints = polyline.points();
console.log("Current points:", currentPoints);
// Set new points
polyline.points([{x: 10, y: 10}, {x: 60, y: 10}, {x: 110, y: 110}]);
return group;
}
}]
});
</script>
In this article