我需要能够在钻取时更新图表标题和大小。
钻取功能会运行,但以下代码根本不执行任何操作。
// 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