Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HighStock : Remove Zoom bar

I want to remove the parts of the highStock as shown in the picture. They dont make sense in my data formatting . Please help

enter image description here

like image 362
Madrugada Avatar asked Oct 04 '12 08:10

Madrugada


3 Answers

Here you are: http://jsfiddle.net/cpvLzLso/

rangeSelector: {
    selected: 4,
    inputEnabled: false,
    buttonTheme: {
        visibility: 'hidden'
    },
    labelStyle: {
        visibility: 'hidden'
    }
}

We are simply hiding all texts and buttons.

And user is able to change default chart interval by changing a selected parameter in rangeSelector settings group.

But you'd better use a Jugal's solution if you don't need to disable navigator bar.

UPD 1: Updated on 23/06/15 to meet today's realities. To all of you who downvoting this answer: try to disable a navigator in Jugal's answer and then pan a chart.

like image 60
Igor Shastin Avatar answered Oct 19 '22 19:10

Igor Shastin


Highchart supports this out of the box by setting the enabled property of the rangeSelector to false as follows

rangeSelector:{
    enabled:false
}

disabled RangeSelector @ jsFiddle

like image 21
Jugal Thakkar Avatar answered Oct 19 '22 21:10

Jugal Thakkar


If you want to remove the "From to" boxes you can do like this:

rangeSelector:{
   inputEnabled: false,
}

If you want to remove every range selector you have to write that row:

rangeSelector:{
    enabled: true,
}

And if you want to do the zoom buttons disabled, you have to write this

rangeSelector:{
    allButtonsEnabled: true,
}
like image 4
mr.mikkancs Avatar answered Oct 19 '22 21:10

mr.mikkancs