首页 > 解决方案 > 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
    }] 
}

标签: angularhighchartshighcharts-ng

解决方案


推荐阅读