plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use custom svg

knightswatch3 opened this issue · comments

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

TIA

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

@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 } }

@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!