I want to use the Relationship Property color or width feature to make that relationships on my NeoDash Map visual different colors or different widths based on a sold quantity on the relationship.
How do I do this? I couldn't find any examples anywhere and the NeoDash documentation was a bit thin on the subject.
Hi @gq16 ,
Thanks for reaching out! You're pretty close here, what you're missing is adding the dynamic color property into the virtual relationship like so:
WITH apoc.create.vNode(["Location"], {name: 'x', color: 'red', lat: 1, long: 1}) as x,
apoc.create.vNode(["Location"], {name: 'y', lat: 2, long: 2}) as y
WITH x, y,
apoc.create.vRelationship(x,"TO", {width: 20, color: 'blue'}, y) as rel
RETURN x, y, rel
The property needs to be assigned directly to the relationship instead of being a seperate variable, so NeoDash knows to map it to that exact relationship.