novus / nvd3

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

watchTransition is not a function #1582

Open dragondgold opened 8 years ago

dragondgold commented 8 years ago

Hi! I'm having the same issue using angular-nvd3. The error I'm getting is:

TypeError: groups.exit(...).watchTransition is not a function
    at SVGGElement.<anonymous> (http://localhost:1624/app/scripts/plugins/nv.d3.js:3950:18)

I'm using the latest d3.js version and the latest nvd3 version. I'm including d3.js before nv.d3.js is this enough? Or how do I make sure d3.js is loaded before nv.d3.js?

Also trying on simple webpage (no Angular and no angular-nvd3) I'm also getting the error pieLabels.watchTransition is not a function when trying this example. The first chart (the left one) is rendered but the other is not.

Traksewt commented 8 years ago

I'm having the same issue. From this answer, it appears nvd3 isn't compatible with the latest d3, which is a problem. Try fixing d3 to 3.4.4 for the moment. stack-overflow

frosiere commented 8 years ago

Hello, same issue for me when trying to use the official samples within Zeppelin.

So, what can be done? This make the library unusable in my case.

rhys-vdw commented 8 years ago

More discussion in #1219, which appears to have been closed without being resolved.

liquidpele commented 8 years ago

If someone can create a jsfiddle showing this in action by linking to the latest master branch builds (you can use rawgit.com for this) then I can take a look. please keep it pure nvd3 though, no angular-nvd3 since I can't control that project and am not familiar with its codebase.

senvey commented 7 years ago

got similar issue and found more recent reference on stackoverflow. but not quite sure what to do yet