7

如何强制在 xAxis 中显示最后一个标签?我尝试使用 showLastLabel: true。但正如你所见,它并没有真正起作用。

参见示例: http: //fiddle.jshell.net/X3jPh/770/

4

2 回答 2

15

除了showLastLabel属性之外,您可能还需要将endOnTick标志添加到您的示例中。例如:

//...

xAxis: [{
    type: 'datetime',
    showLastLabel: true,
    endOnTick: true
},

//...
于 2011-03-23T13:13:21.273 回答
0

使用 tickPositions Array:(number) 来明确标识您希望在 xAxis 上显示的索引。

于 2018-04-28T15:46:55.737 回答