i just want to remove mydiagram layout from LayeredDigraphLayout to (default) or remove this layout and set it to flowchart view
like this → Flowchart
Just set Diagram.layout to whatever kind of layout you want. The default layout for the Diagram class is an instance of Layout. The default layout for the Palette class is an instance of GridLayout.
Fishbone Layout demonstrates changing layouts dynamically.
i just want to remove the layout from go.LayeredDigraphLayout to my default one. i don’t want to set any layout as i already shown you in the above link
To do that you’ll need to set it to an instance of Layout:
myDiagram.layout = new go.Layout();