Skip to content

feat(er-diagram): improve diagram layout #1755

Closed

Description

@ElDeveloper

Problem

When rendering the ER diagram for a large database, the layout of the tables can be cumbersome. Seems like tables are sorted in distinct rows based on the number of incoming/outgoing relationships.

Related to #1335

Proposed solution

It would be helpful if:

  • The layout of the ER graph could make a better use of the horizontal and vertical space on the screen rather than the mostly vertical layout (see cartoon diagram below).
  • Tables were grouped together and styled with different colors according to their relationships. TablePro would need the concept of a "group".

FWIW, dbschema has a very robust layout algorithm that does a great job at automatically grouping tables together and laying them out in a way that's easy to search through and read.

Image

Alternatives considered

Moving tables around is helpful, however it would be nice to be able to style (change color) the tables and group them for readability. See this cartoon diagram of how things would look like in dbschema for the same DB as the cartoon above.

Image

Related database type

None

Activity

  1. added
    enhancement
    on Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions