Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hide zoom text on rangeSelector

Does anyone know how to hide 'zoom' text on highstock's rangeSelector? I already looked up the API page, but could't find the solution.

enter image description here

Thanks in advance!

like image 882
sam Avatar asked Nov 09 '15 09:11

sam


2 Answers

You can use lang options and set empty string.

Highcharts.setOptions({
        lang:{
            rangeSelectorZoom: ''
        }
});

http://jsfiddle.net/q0ra5tk6/

like image 92
Sebastian Bochan Avatar answered Oct 13 '22 19:10

Sebastian Bochan


The rangeSelectorZoom property as suggested by Sebastian is not present in 6.1.0 anymore. A work around if you don't need the From and To Inputs, as it was my case is to not show the label at all:

rangeSelector: {
  labelStyle: {
     display: 'none'
  }
}
like image 10
ama Avatar answered Oct 13 '22 20:10

ama