HighCharts - 显示xAxis中的最后一个标签

Nor*_*mas 7 javascript highcharts

如何强制在xAxis中显示最后的标签?我试图使用showLastLabel:true.但正如你所看到的那样真的不起作用.

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

NT3*_*3RP 15

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

//...

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

//...
Run Code Online (Sandbox Code Playgroud)