gevgeny / angular2-highcharts

:bar_chart: :chart_with_upwards_trend: Highcharts for your Angular project
MIT License
380 stars 113 forks source link

Unable to use 'render' event #157

Open zilions opened 7 years ago

zilions commented 7 years ago

I'm unable to use the render event provided by Highcharts here.

Here is a live example of the problem.

I have tried event binding, like so:

<chart [options]="options" (render)="onRender()">

And I have also tried using Highcharts events object property, like so:

chart: { 
      zoomType: 'x',
      events: {
             render: function() {
                   alert("Hola");
             }
       }
},

Unfortunately, neither seem to work.

gevgeny commented 7 years ago

Hm look like it was added in the recent highcharts version and obsent in the wrapper https://github.com/gevgeny/angular2-highcharts/blob/master/src/createBaseOpts.ts#L4-L13. Thanks, will add.