HighCharts - show last labels in xAxis

2019-06-17 07:32发布

How can I force to show last labels in xAxis? I tried to use showLastLabel: true. But as you see doesn't really work.

See example: http://fiddle.jshell.net/X3jPh/770/

2条回答
Summer. ? 凉城
2楼-- · 2019-06-17 07:41

In addition to the showLastLabel property, you may need to add the endOnTick flag to your example. For example:

//...

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

//...
查看更多
一纸荒年 Trace。
3楼-- · 2019-06-17 07:57

Use tickPositions Array:(number) to specifically identify which indices you want displayed on your xAxis.

查看更多
登录 后发表回答