HighCharts - show last labels in xAxis

匿名 (未验证) 提交于 2019-12-03 00:48:01

问题:

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/

回答1:

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 },  //... 


回答2:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!