Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with metric values disrupting other formatting #223

Open
cbryant42 opened this issue Dec 6, 2021 · 1 comment
Open

Issues with metric values disrupting other formatting #223

cbryant42 opened this issue Dec 6, 2021 · 1 comment
Labels

Comments

@cbryant42
Copy link

I have a potential bug I've noticed.. When creating the diagram before adding the metric values, all of my formatting seems correct and reactive to changes, however, when I try to add in my metric values to the nodes the formatting gets messed up and reacts in unexpected ways (namely with <br> or <br />, and node resizing).
An example might make this more clear:

Without metric value in nodes:
image

With metric value in nodes:
image

I'm attempting to modify the legend format to match the node IDs in order to match specific value -> node, as each metric returns multiple values. The legend naming appears to be correct for what I want. Perhaps there is a better/different way to be placing these values in to the diagram?

Here is my diagram definition (abbreviated to avoid company specifics):

graph LR
    subgraph texttexttexttext 
        route1(text)
        route2(text)
        e0(texttext <br>texttext)
        f0(texttext <br>texttext)
    end    
        


route1 -- Primary --- e0

route2  -- Secondary ---    f0

And here are my metrics:
image

Summary:
I want to add metric values into diagram nodes, but when I do all formatting gets messed up and unresponsive. Nodes don't resize to text, <br> or <br/> are no longer respected, etc.

Let me know if there's more information I can give to diagnose the problem. Thanks in advance for any help!

@jdbranham
Copy link
Owner

Sorry you're having trouble with it.

Which version are you using?
Have you tried using any of the style overrides?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants