It says data is not available in node but it is actually available. How to get the data because it shows error .
The data property isn’t defined on the GraphObject class but on the Panel class. As a practical matter, only Parts such as Nodes and Links, and Panels copied from Panel.itemTemplates, are data bound.
What is it that is giving you that error?