Hi Dsoftware,
We suspect that the issue occurs due to you have get the diagram element from wrong id, so that diagram instance does not get and layout of undefined issue occurs. Get the diagram instance from the diagram id. After get the diagram instance you can able to access the diagram properties and public methods. Please refer to the below code snippet
<div>
@Html.EJ().Diagram("Label", ViewData["diagramModel"] as Syncfusion.JavaScript.DataVisualization.Models.DiagramProperties)
</div>
var diagram = $("#Label").ejDiagram("instance"); |
So please get diagram element from proper diagram id.
Regards
Aravind Ravi