Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何强制在 xAxis 中显示最后一个标签?我尝试使用 showLastLabel: true。但正如你所见,它并没有真正起作用。
参见示例: http: //fiddle.jshell.net/X3jPh/770/
除了showLastLabel属性之外,您可能还需要将endOnTick标志添加到您的示例中。例如:
showLastLabel
endOnTick
//... xAxis: [{ type: 'datetime', showLastLabel: true, endOnTick: true }, //...
使用 tickPositions Array:(number) 来明确标识您希望在 xAxis 上显示的索引。