plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
472 stars 69 forks source link

How to use custom svg #73

Open knightswatch3 opened 3 years ago

knightswatch3 commented 3 years ago

I am new to the react-cytoscape. Can someone please point me on how to use custom svgs for my diagrams.

TIA

coder-xiaotian commented 3 years ago

Hi gays, I have the same problem. I went to know how to define a complex node like this. image

tiago1994 commented 2 years ago

@SatishChandraPalakoti @775146061 I'm using SVG in my project, usually I set the SVG by CSS. About a complex layout, you can do the same, created a CSS to style it and set the text using label, I think it will work.

{ selector: ".userBox", style: { "background-image": userBoxImage } }

coder-xiaotian commented 2 years ago

@SatishChandraPalakoti @775146061 I'm using SVG in my project, usually I set the SVG by CSS. About a complex layout, you can do the same, created a CSS to style it and set the text using label, I think it will work.

{ selector: ".userBox", style: { "background-image": userBoxImage } }

Thank you!