question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple graph in the live editor

See original GitHub issue

Can we have multiple independent graph in the same live editor? This does not work:

graph LR
 unpaid-->paid[paid/unassigned]
 paid-->assigned
 assigned==>finished
assigned-->withdrew
assigned-->cancelled


subgraph LR 
test-->foo

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
erikh2000commented, Oct 31, 2017

You need to give unique names to your nodes so that Mermaid won’t interpret them as the same node. It makes sense if you think about it. How would Mermaid know if you meant the two “a1” nodes to be separate?

So for example, you can change one of the "a1"s to “a1_copy”. That gives you an ugly “a1_copy” text rendered in the graph, but you can specify a separate label like so:

a1_copy[a1]-->c2

…and then the node will render in the graph with “a1” text.

0reactions
IOrlandonicommented, Nov 5, 2019

Hey, you’re commenting on a closed issue. Feel free to open a new issue if the problem still persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Plot - MathWorks
Overlay or combine multiple visualizations by clicking on the Add tab. ... To add the Create Plot task to a live script in...
Read more >
Multiple graph in the live editor #586 - mermaid-js ... - GitHub
Can we have multiple independent graph in the same live editor? This does not work: graph LR unpaid-->paid[paid/unassigned] paid-->assigned ...
Read more >
S01E01: Create Plot in Live Editor, by Maxime BONNET
from data loaded into the Matlab workspace. This tool also offers the possibility of retrieving corresponding lines of code. Multiple methods are available...
Read more >
yEd - Graph Editor - yWorks
I discovered yEd Live after going home and working on the diagram. ... There are not very many free diagramming tools on the...
Read more >
Mermaid Live Editor: Online FlowChart & Diagrams Editor
Mermaid is a simple markdown-like script language for generating charts from text via javascript. ... Two. Three. Christmas. Go shopping. Let me think....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found