HighCharts.StockChart删除缩放功能 [英] HighCharts.StockChart remove zoom feature

查看:180
本文介绍了HighCharts.StockChart删除缩放功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个StockChart,它的下方有一个缩放图。那么,看看jsfiddle



http://tinyurl.com / lfvyx5n



我想要除底部缩放栏和缩放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

http://tinyurl.com/lfvyx5n

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屋!

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