How to take the maximum and minimum values of the y-axis scale for Echarts

The

value is the scale passed from the background. It is automatically generated. How to take the maximum and minimum value?
Code:
$.ajax ({

)
            url : "gettable/"+tablename,
            type : "get",
            async : false, //
            dataType : "json", //json
            success : function(result) {
                var arry1 = []
                if (result) {
                    alert(result.max)
                    //option.xAxis[0]data
                    option.xAxis[0].data = [];
                    for (var i = 0; i < result.length; iPP) {
                        option.xAxis[0].data.push(result[i].date);
                    }
                    //option.series[0]data
                    option.series[0].data = [];
                    for (var i = 0; i < result.length; iPP) {
                        option.series[0].data.push(result[i].value);
                        if (result[i].value != null) {
                            countPP;
                        }
                        
                    }
                    
                    myChart.hideLoading(); //
                    myChart.setOption(option);
                }
                
                var data1 = result[count-1].date
                var item = [
                    {
                        name: data1,
                        label: { show: true, position:"start" } ,
                        coord: [data1, 50]
                    },
                    {
                        coord: [data1, 0]
                    }
                ]
                
                arry1.push(item)
                option.series[0].markLine.data=arry1;
                myChart.hideLoading(); //
                myChart.setOption(option);
            },
            error : function(errorMsg) {
                alert("!");
            }
            
        })
Sep.16,2021

let data1 = result[count-1].date
let max = Math.max(...data1);
console.log(max)
//  let data1 = [1,2,3];
// let max = Math.max(...data1);
// console.log(max) // 3
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b404b7-2c50e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b404b7-2c50e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?