I have the following requirement - the orientation of the links in my graph must always render horizontally and vertically (up/down and left/right). I can easily achieve this with the "Flowchart" layout. Unfortunately, in certain situations, some links end up crossing the nodes' borders (
please see the attached screenshot).
Here's some useful information and details:
- I'm currently running an unofficial release of the NetDiagram package (MindFusion.Diagramming.dll v5.8.0.36989) that you built for me that exposes ClientSideMode support for "SvgImage". The graph below is rendered in "SvgImage" client-side mode.
- The nodes in the below graph are TableNode's and this is the code that sets up each node:
TableNode node = PFVDiagram.Diagram.Factory.CreateTableNode(0, 0, 0, 0, 2, 6);
node.Id = some_id;
node.Caption = String.Empty;
node.CaptionHeight = 0f;
node.CellFrameStyle = CellFrameStyle.None;
node.ConnectionStyle = TableConnectionStyle.Table;
- And this is how I set up the "Flowchart" layout:
FlowchartLayout l3 = new FlowchartLayout();
l3.Anchoring = Anchoring.Reassign;
l3.Arrange(PFVDiagram.Diagram);
I would really appreciate it if you could either suggest improvements to my code, or perhaps suggest another layout algorithm that would satisfy my requirements and result in a nicely rendered graph.
Let me know if there's anything else that I need to share with you regarding my implementation.
Thanks in advance!