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 have trouble adding a Legend to describe various kinds of connections. The best so far that I've come up with (dagre does not allow for width, for example) is silly padding, like
g1: "" {
class: pad
#width: 400
grid-rows: 1
# grid-gap: 0
source.class: legend-node
p0.class: pad; p1.class: pad; p2.class: pad; p3.class: pad; p4.class: pad; p5.class: pad; p6.class: pad
target.class: legend-node
source -> target: data processed {
label.near: top-left #ignored on a connection label, only a shape label works
style.stroke-width: 3
}
}
which gives (in Chrome):
where the arrow is broken (I tried reducing grid-gap, but it does not seem related).
Is there a way to put the text above the horizontal line?
For completeness:
I have trouble adding a Legend to describe various kinds of connections. The best so far that I've come up with (dagre does not allow for width, for example) is silly padding, like
which gives (in Chrome):
where the arrow is broken (I tried reducing grid-gap, but it does not seem related).
Is there a way to put the text above the horizontal line?
For completeness:
EDIT: I found out that adding
label: ""
to thepad
class, removes the breakages. Still, the general question is about connection support in legends.The text was updated successfully, but these errors were encountered: