ERD (Entity relation diagram): Modify "group" of "text" elements representing each entity (table) attribute (column) to contain 3rd text of datatype

222 views
Skip to first unread message

Lukáš Plachý

unread,
Oct 6, 2017, 10:01:22 AM10/6/17
to draw.io

Similar issue here: https://groups.google.com/forum/#!searchin/drawio/erd$20data$20type$20column%7Csort:relevance/drawio/R9YQhus0CBs/MXDwXDoXCwAJ

Dear all,

I'm trying to modify the ERD text group representing a data column to contain a 3rd text item containing the datatype. While I agree, that such information might be rather part of additional written documentation, nevertheless the same could be applied on the PK/FK constraint, on the entire "column" items, on the relations or on the entire diagram itself. So lets assume, that the datatype is needed. Additionally, the draw.io "grammar" (of concepts and objects) definitely contains a possibility how to create such template of entity diagram.
However, when trying to add a 3rd part of the column-representing group of "text" objects, I face following issues:
- resizing of the group - when I detach (ungroup) the items, add an another and group them again, then suddenly the sizing and text position of the main part (the "name" of the column) behaves differently, the main naming text covers the PK/FK part or the 3rd "datatype" part, instead to be kept bound inside its own "box" as in the default behavior
- creating a brand new group - how can a textbox be outlined only on one side? I was unable to find the dialogue for manipulating left/right/top/bottom outlines separately.
- creating a brand new group when using the PK/FK from the original group: the text object does not respond to mouse drag to be moved anywhere, when aligning with other object, then only the other objects are aligned to the PK/FK text item, never the other way, disregarding the z-order they have to each other.

Any solution to the abovementioned? Some hidden "code" editor to define the "column" item group?

Thankx in advance...

Mate

unread,
Oct 10, 2017, 2:31:16 AM10/10/17
to draw.io
Draw.io has it's limitations in this regard, but you can always place a rectangle on canvas and enter a HTML table in it. You can find some examples here in the Misc group:

Reply all
Reply to author
Forward
0 new messages