HighCharts.StockChart删除缩放功能 [英] HighCharts.StockChart remove zoom feature
问题描述
我们有一个StockChart,它的下方有一个缩放图。那么,看看jsfiddle
我想要除底部缩放栏和缩放1m 1年等等以及该日期范围选择器以外的所有内容。这些默认情况下,但我怎么能关闭它。
我的其他选项是转换为HighChart.Chart然后不再做日期:( :(。
谢谢,
Dean
您必须禁用 navigator
才能移除底栏并禁用 rangeSelector
以移除缩放按钮:
$('#container')。highcharts('StockChart',{
...
rangeSelector:{
启用:false
},
导航器:{
启用:false
}
...
} );
这里有一个JsFiddle: http://jsfiddle.net/CgAnW/
We have a StockChart and it has a zoom below the graph. Well, just look at the jsfiddle
I want it all except the bottom zoom bar and the zoom 1m 1year, etc. etc. and that date range selector. These are on by default but how can I turn it off.
My other option was to convert to HighChart.Chart which then is not doing dates anymore :( :(. I am just looking for a real quick option.
thanks, Dean
You have to disable navigator
to remove the bottom bar and to disable rangeSelector
to remove the zoom button :
$('#container').highcharts('StockChart', {
...
rangeSelector : {
enabled: false
},
navigator: {
enabled: false
}
...
});
Here a JsFiddle : http://jsfiddle.net/CgAnW/
这篇关于HighCharts.StockChart删除缩放功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!