【问题标题】:Not able to drill down after clicking back button.单击后退按钮后无法向下钻取。
【发布时间】:2017-06-27 13:08:01
【问题描述】:

单击后退按钮后,我无法向下钻取。第一次向下钻取工作正常,但在回到原始状态后,单击栏时向下钻取不起作用。 Sample graph link is here

drillup: function(e) {
                chart.xAxis[0].setCategories(protocolNames, true);
                chart.xAxis[0].update({labels:{rotation:0}});
                chart.yAxis[1].update({
                    labels: {
                        enabled: true
                    },
                    title: {
                        text: ''
                    }
                });  
            }

【问题讨论】:

    标签: javascript jquery highcharts


    【解决方案1】:

    要自定义图表,请在 highcharts 中使用 e.seriesOptions 对象并参考此 Jsfiddle

    请不要在向上钻取事件中覆盖图表对象。

    drillup: function(e) {
       console.log(e.seriesOptions);
    }
    

    【讨论】:

      猜你喜欢
      • 2011-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多