问题
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