我需要设置固定的xAxis值,就像那张图片,like that picture我试图设置这个,但它不能:
tickPositioner: function(min, max) {
var result = []
let today = moment().subtract(4,`day`).format("YYYY-MM-DD")
let tomorrow = moment().subtract(3,`day`).format("YYYY-MM-DD")
result.push(moment(`${today} 06:00:00`).unix()*1000)
result.push(moment(`${today} 12:00:00`).unix()*1000)
result.push(moment(`${today} 18:00:00`).unix()*1000)
result.push(moment(`${tomorrow} 00:00:00`).unix()*1000)
result.push(moment(`${tomorrow} 06:00:00`).unix()*1000)
result.info = this.tickPositions.info;
return result;
}
我不知道如何设置这些值?