HighCharts:在stackLables上为堆积条形图添加onClick回调

时间:2017-01-24 09:52:52

标签: angularjs highcharts highcharts-ng

目标是在每个堆叠条形图的前面添加一个按钮,然后单击按下钻取图表。

我添加了按钮作为stackLabel并且在添加onClick回调时卡住了。

yAxis:{
                        stackLabels:{
                            enabled:true,
                            formatter: function(){
                                return '>'; /* this will be replaced to button*/
                            }
                        }
                    }

我们有更好的方法来实现这个目标吗?

请检查小提琴http://jsfiddle.net/fyzfa0b4/6/

0 个答案:

没有答案