You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a project where I need to programmatically generate a network diagram to import into draw.io. My diagram involves nodes and connectors (edges), where each connector represents a network link and has multiple pieces of information associated with it (such as local interface, VLAN range, and remote interface).
I would like each connector to have multiple labels, each displaying a different piece of information, and these labels should be positioned along the connector at different points (e.g., the local interface label near the source node, the VLAN range label in the middle, and the remote interface label near the target node).
I am currently generating the draw.io diagram by creating an XML file in the mxGraph format, as draw.io uses this format. However, I'm not sure how to represent multiple labels on a connector in this format.
Could you please guide me on how to add multiple labels to a connector in the draw.io XML file? Any advice or pointers to relevant documentation would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am working on a project where I need to programmatically generate a network diagram to import into draw.io. My diagram involves nodes and connectors (edges), where each connector represents a network link and has multiple pieces of information associated with it (such as local interface, VLAN range, and remote interface).
I would like each connector to have multiple labels, each displaying a different piece of information, and these labels should be positioned along the connector at different points (e.g., the local interface label near the source node, the VLAN range label in the middle, and the remote interface label near the target node).
I am currently generating the draw.io diagram by creating an XML file in the mxGraph format, as draw.io uses this format. However, I'm not sure how to represent multiple labels on a connector in this format.
Could you please guide me on how to add multiple labels to a connector in the draw.io XML file? Any advice or pointers to relevant documentation would be greatly appreciated.
Thank you for your assistance.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions