pablojim / highcharts-ng

AngularJS directive for Highcharts
MIT License
1.73k stars 463 forks source link

How to add listener to addSeries event? #637

Closed donli1210 closed 6 years ago

donli1210 commented 6 years ago

Hi,

Please see this JsFiddle. I want to add a listener for addSeries event using the plugin way.

I can get the mouse hover event by $(chart.container).bind('mousemove', function() {}. But

 $(chart.container).bind('addSeries', function() {

          console.log('New series added.');

        });

does not work. Any suggestions? Thanks!

pablojim commented 6 years ago

I have never played with adding plugins. PRs accepted!