krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

elementClick triggered only the second time #753

Open jessydan opened 6 years ago

jessydan commented 6 years ago

Hi,

I try to use your library but I have a problem with the eventClick, when the graph is loaded for the first time the event click is throw after two click, the first click on the graph do nothing, and only the second click can triggered the event. And that's only for the first click after the graph load.

I've made a post on stackoverflow if you need to take a look at the code : https://stackoverflow.com/questions/51358273/nvd3-for-angular-element-click-doesnt-trigger-the-first-time

Thanks.

jessydan commented 6 years ago

I don't know why but this come from the ' useInteractiveGuideline', if I set this to false then the elementClick work only the second time