0

Maybe this is an obvious question or perhaps it's simply not possible but our team is trying to add export functionality to our webapp and we would require users to use our specific cytoscape style.xml file alongside their exported graph. Ideally though we'd just embed the style into the json. Is this possible?

Thanks in advance!

  • Same answer applies: https://stackoverflow.com/questions/16906010/storing-xml-inside-json-object – Chizl Jun 30 '22 at 00:27
  • Actually, this isn't the same as the https://stackoverflow.com/questions/16906010/storing-xml-inside-json-object The OP is asking about functionality between Cytoscape.js and Cytoscape desktop – Scooter Morris Jun 30 '22 at 15:26

1 Answers1

0

Unfortunately, the short answer is "no". Currently, there is no way that I know of to export cytoscape desktop styles for visualization in cytoscape.js. We have the same requirement and could not find an easy solution. On the other hand, you can export your network as a CX file, which includes information about styles and then visualize that with cytoscape.js.

-- scooter

Scooter Morris
  • 1,269
  • 1
  • 7
  • 4