Agustin.Ferreira
Agustin.Ferreira

Reputation: 311

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!

Upvotes: 12

Views: 17302

Answers (4)

JohnnyHK
JohnnyHK

Reputation: 312115

In your chart config, set rangeSelector.inputEnabled false.

Upvotes: 17

Tullochgorum
Tullochgorum

Reputation: 531

The accepted answer will only disable the Range Selector;

If you want to remove it completely, you need:

 rangeSelector: {
    enabled: false
},

Upvotes: 17

Zahid
Zahid

Reputation: 614

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
  }]
});

Upvotes: 2

Ronniemittal
Ronniemittal

Reputation: 369

you can use add inputEnabled:false

rangeSelector : {
   inputEnabled:false
},

Upvotes: 9

Related Questions