Accessing value attribute in Protovis lines

Posted by Luce on Stack Overflow See other posts from Stack Overflow or by Luce
Published on 2010-06-13T10:47:12Z Indexed on 2010/06/13 10:52 UTC
Read the original article Hit count: 186

Filed under:

I'm using Protovis Arc layout and I'd like to color links between nodes accoriding to the 'value' property defined in dataset. How can I access it?

Dataset is defined like that: Nodes: ... {nodeName:"Books"} ...

Links: ... {source:1, target:4, value:20} ...

arc.link.add(pv.Line).strokeStyle(function(d) d.value > 10 ? "#cc0000" : "#eeeeee"); - does not work

© Stack Overflow or respective owner

Related posts about protovis