angular - highchart 范围选择器在 highchartjs、highchart-ng 升级后未显示
问题描述
我已将 HighchartsJs 升级到 6.1.0。所以我不得不将 highchart-ng 升级到最新版本(1.2.1)。我还为 angular-component 和 angular-merge 添加了 polyfill,因为我使用的是 angular-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
}]
}
解决方案
推荐阅读
- javascript - 想用javascript实现图片列表界面的旋转
- php - 上传图片工作,但也不工作
- java - 如何在java中计算整个链接列表的点的总距离?
- docker - RHEL7 dockerd 远程连接
- bootstrap-4 - Bootstrap 4 - 3 列布局,在 lg 中将右列拉到左列下方
- python - 如何在 Windows 上公开/启动 Anaconda?
- r - 使用 R,如果变量 A 或 B 中的值是“NA”,那么使用变量 C 和 D 中的值来代替?
- bash - 如何从 CSV 中删除在 Bash 中读取的行
- apache-kafka - Kafka Streams 聚合阶段是否序列化和反序列化每个元素?
- javascript - 当页面上出现特定文本时播放声音通知