use a for loop to return a max value in an object array code example
Example: find max of array of objects key
Math.max.apply(Math, array.map(function(o) { return o.y; }))
Math.max.apply(Math, array.map(function(o) { return o.y; }))