mingrammer / diagrams

:art: Diagram as Code for prototyping cloud system architectures
https://diagrams.mingrammer.com
MIT License
39.41k stars 2.53k forks source link

Labels overlapping nodes #526

Open hernigon opened 3 years ago

hernigon commented 3 years ago

First of all, excellent project! Thanks for all the time dedicated to share it with us. I decided to move my team to start using diagrams as our default tool by I cannot solve this issue. I don't get how to solve de missalignement in labels. All of them are visualized overlapping with nodes, turning it complicated to read:

I'm using latest versions of diagrams and graphviz (I also tried downgrading with different combinations of versions with the same result):

Do you know if there is any problem associated with these versions? Thanks in advance!

I tried with this example code and the problem persists:

clustered_web_services

`from diagrams import Cluster, Diagram from diagrams.aws.compute import ECS from diagrams.aws.database import ElastiCache, RDS from diagrams.aws.network import ELB from diagrams.aws.network import Route53

with Diagram("Clustered Web Services", show=False): dns = Route53("dns") lb = ELB("lb")

with Cluster("Services"):
    svc_group = [ECS("web1"),
                 ECS("web2"),
                 ECS("web3")]

with Cluster("DB Cluster"):
    db_master = RDS("userdb")
    db_master - [RDS("userdb ro")]

memcached = ElastiCache("memcached")

dns >> lb >> svc_group
svc_group >> db_master
svc_group >> memcached`
clayms commented 3 years ago

have a look at these comments

https://github.com/mingrammer/diagrams/issues/503#issuecomment-810505927

https://github.com/mingrammer/diagrams/issues/503#issuecomment-811181069

https://github.com/mingrammer/diagrams/issues/503#issuecomment-811565161