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!
4 Answers
In your chart config, set rangeSelector.inputEnabled
false.
-
It doesn't work because I think it's for an older syntax. Would be best to check how it works directly on the site. api.highcharts.com/highstock/rangeSelector.enabled– JesterJun 1, 2018 at 13:45
The accepted answer will only disable the Range Selector;
If you want to remove it completely, you need:
rangeSelector: {
enabled: false
},
-
1
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
}]
});