HighCharts.StockChart remove zoom feature

2019-07-29 11:05发布

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

标签: highcharts
1条回答
三岁会撩人
2楼-- · 2019-07-29 11:47

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/

查看更多
登录 后发表回答