Closed suryarastogi closed 1 year ago
labelColor
edgeLabelColor
Use either of the following settings in a graph
settings={{ edgeLabelColor: "#0f0", labelColor: "#f00" }}
Reproducible CodeSandbox link
Edge labels are coloured green and node labels are coloured red
Edge labels are coloured black and node labels are not legible
I've used Sigma.js in the past but I'm somewhat new to React so there is a chance I may be using the library incorrectly
Settings are wrong, try this instead :
settings={{ labelColor: { color: "#f00" }, edgeLabelColor: { color: "#f00" } }}
Thank you! That works!
labelColor
andedgeLabelColor
not behaving as expectedSteps to reproduce
Use either of the following settings in a graph
Reproducible CodeSandbox link
Expected behaviour
Edge labels are coloured green and node labels are coloured red
Actual behaviour
Edge labels are coloured black and node labels are not legible
Note
I've used Sigma.js in the past but I'm somewhat new to React so there is a chance I may be using the library incorrectly