Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable range selector from highstocks charts

I'm trying to disable the from - to range selector that comes by default in highstocks. Looked up the api documentation but didn't find a solution. Thanks for the support!

like image 238
Agustin.Ferreira Avatar asked Nov 09 '12 13:11

Agustin.Ferreira


4 Answers

The accepted answer will only disable the Range Selector;

If you want to remove it completely, you need:

 rangeSelector: {
    enabled: false
},
like image 77
Tullochgorum Avatar answered Nov 18 '22 18:11

Tullochgorum


In your chart config, set rangeSelector.inputEnabled false.

like image 30
JohnnyHK Avatar answered Nov 18 '22 18:11

JohnnyHK


you can use add inputEnabled:false

rangeSelector : {
   inputEnabled:false
},
like image 9
Ronniemittal Avatar answered Nov 18 '22 20:11

Ronniemittal


You can use for StockChart just like below:

this.chartData = new StockChart({
  title: {
    text: 'Data Chart'
  },
  rangeSelector: {
    selected: 0,
    inputEnabled: false
  },
  series: [{
    tooltip: {
      valueDecimals: 2
    },
    name: 'Chart',
    data: [],
    type: undefined
  }]
});
like image 2
Zahid Avatar answered Nov 18 '22 19:11

Zahid