HighCharts - 显示xAxis中的最后一个标签 [英] HighCharts - show last labels in xAxis

查看:204
本文介绍了HighCharts - 显示xAxis中的最后一个标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何强制显示xAxis中的最后一个标签?我试图使用showLastLabel:true。但是,正如你所看到的并不是真的有效。



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

解决方案

showLastLabel 属性,您可能需要在您的示例中添加 endOnTick 标志。例如:

  // ... 

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

// ...


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/

解决方案

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

//...

这篇关于HighCharts - 显示xAxis中的最后一个标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆