d3 / d3-selection

Transform the DOM by selecting elements and joining to data.

Home Page:https://d3js.org/d3-selection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.transition() is not a function

Sidchou opened this issue · comments

does not work with .transition()

when library included, .transition is not a function

This sounds like a problem with how you are bundling your code.

The .transition function is added to the selection prototype when you import d3-transition.

Hello, this error occurred when I also did this version-up from 1.4.1 to 1.4.2.
(Note that Github's d3-selection has a release of 1.4.1 and 1.4.2 is present at NPM.)

This error was resolved when I ran yarn upgrade or yarn upgrade d3-selection.