alonho / angular-plotly

MIT License
41 stars 35 forks source link

Fix infinite watcher recursion #30

Open gabrielreid opened 5 years ago

gabrielreid commented 5 years ago

Make a copy of the layout before assigning it to the graph element. Plotly sometimes performs its own updates on the layout element, specifically when dealing with time series data where the x-axis consists of Date values. In this case, we can get into an infinite recursion situation with the watcher in angular.