我已经将HighchartsJs升级到6.1.0。 因此,我不得不将highchart-ng升级到最新版本(1.2.1)。 我也为角度分量和角度合并添加了polyfill,因为我使用的是1.3.17。 升级后,在以前版本上运行的rangeSelector现在不会显示。
$scope.chartConfig = {
chart: {
type: 'column'
},
rangeSelector: {
allButtonsEnabled: true,
selected: 2
},
navigator: {
enabled: true,
adaptToUpdatedData: false
},
title: {
text: 'Temperature variation by day'
},
subtitle: {
text: 'Demo of all buttons enabled. Even though "YTD" and "1y" don\'t apply since we\'re <br>only showing values within one year, they are enabled to allow dynamic interaction'
},
tooltip: {
valueSuffix: '°C'
},
series: [{
name: 'Temperatures',
data: data
}]
}