krispo / ng2-nvd3

Angular2 component for nvd3
http://krispo.github.io/ng2-nvd3/
MIT License
328 stars 104 forks source link

RenderEnd event not fired when duration is set #57

Open FCourtine opened 7 years ago

FCourtine commented 7 years ago

Hi all,

I've tried to listen renderEnd event. I do something like this

options: {
 chart : {
  dispatch: {
    renderEnd: function(event) {
     ....
    }
  }
 }
}

The event renderEnd is fired when the chart is drawn. When i set a duration on my graphic options, the renderEnd event is never fired. Here is the code

options: {
 chart : {
 duration: 10,
  dispatch: {
    renderEnd: function(event) {
     ....
    }
  }
 }
}

Here is the plunkr : http://plnkr.co/edit/iwOjXVYi6uxJprfGfYzQ?p=preview. The renderEnd event is printed on console and show below the chart.