Dean Hiller
Dean Hiller

Reputation: 20182

HighCharts.StockChart remove zoom feature

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

Upvotes: 2

Views: 6449

Answers (1)

Pierre Fourgeaud
Pierre Fourgeaud

Reputation: 14510

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/

Upvotes: 11

Related Questions