novus / nvd3

A reusable charting library written in d3.js
http://nvd3.org/
Other
7.22k stars 2.15k forks source link

wrong data points positions after doing a transition #2018

Closed mvidailhet closed 6 years ago

mvidailhet commented 7 years ago

After doing a transition by changing the data, it seems that the data points are not at the right place anymore. It looks like the scale hasn't been updated for them. If you remove the "duration" option, it works again, but there is no more transition on the line. screen shot 2017-04-18 at 16 57 57

Here is the codepen: https://codepen.io/mvidailhet/pen/RVWyxo

rameshvisolve commented 7 years ago

Can please look into this issue, if you knows. https://github.com/krispo/angular-nvd3/issues/659

lavinia-k commented 7 years ago

Experienced a similar bug with (multi)line charts and interactiveGuideline, where the guideline points seem to be stuck in their previous position after a data update. Looks like this was working up to nvd3-1.8.2, but has stopped working from nvd3-1.8.3 onwards.

I tried to replicate it here, but if you hover away from the chart for a while, the issue seems to disappear (which is not the case with the application I'm working with)... http://plnkr.co/edit/bs9kjX?p=preview

Removing the 'duration' option fixes it for me too, so I've done that for now.