向下钻取时,我需要能够更新图表标题和大小。
向下钻取函数运行,但以下代码根本不执行任何操作。
// This gets called correctly, alert gets hit but does not change the title
drilldown: function() {
alert('drilldown');
$scope.highchartsNG.title.text = 'New Title Test (drilldown)';
}
// This gets called at start and changes the title
func: function (chart) {
//setup some logic for the chart
//alert('func');
$scope.highchartsNG.title.text = 'New Title Test (func)';
}
jsfiddle 位于以下http://jsfiddle.net/vgmhgs0e/2/。实际的向下钻取在此示例中不起作用,但我可以使用它,我认为这是因为它没有来自该线程的代码:Highcharts-ng with Drilldown