1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| export default function getChartLinesMax(data) {
| let result = {
| x: -1,
| y: -Infinity,
| z: 0
| };
|
| data.map((item,key)=>{
| item.map((item1, key1)=>{
| if(Number(item1)>Number(result.y)) {
| result.x = key1;
| result.y = item1;
| result.z = key;
| }
| });
| });
| return result;
| }
|
|