我有这个数组:
var data = [{
// series 1
data: [ [1, 30], [2, 40],[3, 38], [4, 39], [5, 42] ],
color: '#8bc12c',
points: { radius: 4, fillColor: '#8bc12c' }
},
{
// series 2
data: [ [1, 30], [2, 40],[3, 38], [4, 39], [5, 42] ],
color: '#858585',
points: { radius: 4, fillColor: '#858585' }
},
{
// series 3
data: [ [1, 30], [2, 40],[3, 38], [4, 39], [5, 42] ],
color: '#e88278',
points: { radius: 4, fillColor: '#e88278' }
},
{
// series 4
data: [ [1, 50], [2, 60],[3, 58], [4, 59], [5, 62] ],
color: '#5a5a5a',
points: { radius: 4, fillColor: '#5a5a5a' }
}
];
我想让数据包含另一个具有 [x,y] 值的数据数组。如何从这个数组中获得最高的 y 值?在这种情况下是 62