-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Update graph #311
Comments
Actually, it works in Firefox, it's not re-rendering the graph only in chrome (I'm using chrome 48) and I tested mermaid versions 5.7, 5.6 and 4.0, none of them worked, only a very old version worked fine (The one used in the editor folder). |
Are you using the API for this rendering? It sounds like you should use the render function for this. Se example in the docs: I hope that helps. |
Render function works only ones. Did anyone found solution for this? I'm facing same problem. |
Looking at this one. |
I solved it by removing div with graph, adding it back, setting text, calling init method. |
OK. Will continue with it anyway then. |
i know its old but wanted to say i do not delete the entire div but remove the attribute "data-processed". after that calling init on it again seems to work. |
Thanks! That sounds like a less intrusive approach. |
roidayan, ¿could you expose the complete solution here?, please |
my html is:
and in js I do this on init and each time my data in node.data.graph changes:
|
@roidayan 's solution works and I use it too. |
…nder happens, reference: mermaid-js/mermaid#311 (comment)
You solved my problem. |
Did you find a solution? It also doesn't seem to work in mermaid 10, to which I'm trying to migrate. I can't find if it's not explicitly covered in 10. |
@eduo I didn't find solution, my solution is use mermaid 9.1.0. My front-end skills are limited so I don't quite understand the reasons that why mermaid 9.1.0 can work but other version can't. |
Hi, I have a question, I have a graph in my page that is loaded as soon the page is fully loaded. I have some menus that allow the user to add nodes and remove nodes, manipulating the graph definition that is inside a textarea, but I'm having difficulties trying to "redraw" the graph. I tried calling "init" again, I tried calling the API, but I have no success in both options. So my question is, how can I re-render the graph?
The text was updated successfully, but these errors were encountered: