Echarts xAxis displays names only on both sides

broken line chart, to get the data of the current time and 00:00 on the same day, how to set up xAxis, you can display "00:00" at the origin of the coordinate axis, and the current time, such as "18:22", at the top on the right side of the x-axis. Other times in the green box in the figure do not appear

Feb.09,2022

you can configure xAxis.axisLabel.formatter as a callback function that returns an empty string
such as

when the value passed in during the callback is not equal to the start or end value.
formatter:function(val){
    if(val == '' || val == ''){
        return val
    }
    else {
        return ''
    }
}

reference

Menu