0

Scenario:

  1. Create Diagram:

mxGrpah editor original color After completed the drawing of diagram,I am getting mxGrpah XML nodes from graph and storing in to the database.

  1. Edit Diagram:

User can view/edit the existing diagram, here I'm retrieving all XML nodes from database, combined and binding to the graph. While loading the page all the shape colors are showing in to blue

mxGrpah editor color changed

Question:

I have not change any style attributes, also not sure about why it's displaying in blue color. Is there any workaround to retain the original color?

Bala
  • 618
  • 5
  • 21
  • 1
    https://stackoverflow.com/questions/57075352/mxgraph-displaying-a-diagram-by-loading-a-xml/57075697#57075697 I suspect it has to do with what I mentioned in the comment under your answer – NickAth Jul 24 '19 at 13:45
  • @NickAth, Awesome! Issue cause could be var ui = new EditorUi(new Editor()); because it's creating a new editor. I tried with your solution and works well. – Bala Jul 25 '19 at 11:42
  • you could change the accepted answer if it helped you :) – NickAth Jul 25 '19 at 14:57

0 Answers0