clear

Removes all elements from the group.

Example

<div id="diagram"></div>
<script>
var diagram = kendo.dataviz.diagram;
var rect = new diagram.Rect(0, 0, 300, 200);
var layout = new diagram.Layout(rect, {
    orientation: "horizontal"
});

// Add some elements
layout.append(new diagram.Circle({ radius: 20 }));
layout.append(new diagram.Rectangle({ width: 40, height: 20 }));

// Clear all elements
layout.clear();
console.log("All elements removed from layout");
</script>
In this article
clear
Not finding the help you need?
Contact Support