Cannot set max, min value for y axis in Echarts?

when echarts, is used in the project, you want to set the maximum and minimum values for the chart"s y-axis.
when max and min are set to constant, this setting takes effect:

yAxis: [{
        type: "value",
        position: "left",
        axisLabel: {
            formatter: "{value}"
        },
        axisLine: {
            lineStyle: {
                color: this.colors[0]
            }
        },
        gridIndex: 0,
        min: -1,
        max: 6,
        
    }]

the style of the corresponding icon is as follows:

minmax:


:

I would like to ask all of you what this situation is all about and how to adjust it

.
Mar.14,2021

Code No problem
are you sure you only changed the values of these two attributes and nothing else?


I have the same problem. I got better after upgrading echarts.min.js


max:function (value) {

                    
                        return value = 6;
                     },
                    min:function (value) {
                        return value = -1;
                   }
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-1be3490-303ad.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-1be3490-303ad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?