pv.blend and pv.max

5 views
Skip to first unread message

rob.shell

unread,
Sep 1, 2011, 2:51:02 PM9/1/11
to protovis
I have the following:

var players = [
{"name": "Bill", "points": [39, 90, 101, 87, 106, 110, 86, 89]},
{"name": "Thomas", "points": [168, 178, 158, 181, 124]},
{"name": "Jim", "points": [108, 137, 105]},
{"name": "Reggie", "points": [189, 211]},
{"name": "Jerome", "points": [167, 164, 171, 51]}
];

The highest value is in this data set is 211. How do I use pv.blend
and pv.max to get the highest value from this array of arrays?

I've tried the following to no avail:
var max = pv.max(pv.blend(players.points));


Thanks in advance!
Reply all
Reply to author
Forward
0 new messages