d3 / d3-transition

Animated transitions for D3 selections.
https://d3js.org/d3-transition
ISC License
223 stars 65 forks source link

transition().textTween not working #119

Closed GuillaumeMilan closed 3 years ago

GuillaumeMilan commented 3 years ago

I got the following package.json

    "d3": "^6.2.0",
    "d3-transition": "^2.0.0",

And the following code (coming from the example of textTween):

const div = d3.create("div")
div.transition().duration(5000).textTween(() => t => `t = ${t.toFixed(6)}`)

I got the following error:

Uncaught (in promise) TypeError: div.transition(...).duration(...).textTween is not a function

I tried to search for version issue but it seems to not be that:

GuillaumeMilan commented 3 years ago

Sorry for this issue. I was working with 2 version of d3 side to side without noticing it