[英]Unable to set xAxis min for Highstock (Highcharts)
I have a chart very similar to this fiddle below: 我有一张与下面的小提琴非常相似的图表:
http://jsfiddle.net/yse0Lkq2/ http://jsfiddle.net/yse0Lkq2/
And I am trying to set a xAxis.min even if the min
has no value (I'm hoping it could show blank white space rather than nothing at all). 我试图设置xAxis.min,即使min
没有值(我希望它可以显示空白而不是什么也没有)。 I tried setting: 我尝试设置:
xAxis: {
min: 1147284425000,
minRange: 30 * 1000,
startOnTick: false,
endOnTick: false
}
Hoping that both the chart and the navigator could start with "1147284425000", which equals (GMT): Wed, 10 May 2006 18:07:05 GMT
, but I'm not seeing any differences here. 希望图表和导航器都可以以“ 1147284425000”开头,该值等于(GMT): Wed, 10 May 2006 18:07:05 GMT
,但我在这里没有看到任何区别。
What am I missing here? 我在这里想念什么?
Thanks guys! 多谢你们!
Three things to mention: 要提三件事:
rangeSelector.selected
option prevents min, remove that one rangeSelector.selected
选项可防止最小值,将其删除 xAxis.min
is not enough, add also xAxis.max
to see the change xAxis.min
是不够的,还添加xAxis.max
以查看更改 xAxis.ordinal
to false. 除非将xAxis.ordinal
设置为false,否则它将不起作用。 Ordinal option displays points equally on the available space, so there is no place for "empty space" 序数选项在可用空间上均等地显示点,因此“空空间”没有位置 And working demo: http://jsfiddle.net/yse0Lkq2/1/ 和工作演示: http : //jsfiddle.net/yse0Lkq2/1/
I am not sure If I am getting your questions completely or not but from what I got is you are trying to set the minimum for navigator. 我不确定我是否能完全解决您的问题,但是从我得到的结果来看,您是否正在尝试设置导航器的最低要求。 Please try setextreme function. 请尝试使用setextreme函数。 Ref : http://api.highcharts.com/highstock#Axis.setExtremes 参考: http : //api.highcharts.com/highstock#Axis.setExtremes
Hope that helps Manish 希望能帮助Manish
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.