Open kieran-mace opened 6 years ago
It looks like all you need to do is add style.name = 'Curved'
to your arg list for setNodeColorRule
. Without this arg, the rule is applied to the default style. This does NOT mean the last style you set, but rather the style named default
which is a fixed thing. Does this make sense?
Thanks for the suggestion. It does make sense, however when I give your solution a go, I get an error:
setNodeColorRule (cw,
node.attribute.name='type',
data.values,
node.colors,
mode='lookup',
default.color='#AA0000',
style.name = 'Curved')
Error in setNodeColorRule(cw, node.attribute.name = "type", data.values, :
unused argument (style.name = "Curved")
Also the docs don't have a style.name
argument for setNodeColorRule
. Maybe I need to update RCy3?
Ah, sorry. I'm in the middle of a refactor which includes some renamed args. The arg in the currently release version is vizmap.style.name
. Can you try that?
If I choose to use a default style, but want to modify something about it, I can't. For example, I'm implementing the
Curved
style below, and if I try to change the node color rules after, they do not take effect.