angular-dygraphs
angular-dygraphs copied to clipboard
Remove resize on watch of data
In your scope.$watch('data'..., you have complete the update of the graph with a call to resize(). While this may not be an issue for static plotting, if you do use this in a dynamic situation, this function call will result in a performance hit.
just comment resize();