HighCharts.StockChart remove zoom feature

℡╲_俬逩灬. 提交于 2019-12-11 13:33:19

问题


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


回答1:


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/



来源:https://stackoverflow.com/questions/17495655/highcharts-stockchart-remove-zoom-feature

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