Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datejs and d3.js conflict with transition

I've been using both D3.js and date.js (http://www.datejs.com/) and find out that the transition() method in D3 doesn't work. - that is I can't make any animations with D3 when date.js is also included in the same HTML file.

I suppose it should be scope or namespace conflict, but I don't know how to fix it. All D3 codes are in one global variable, but it doesn't help. Anyone have solutions for this, except for not using one of these. :-)?

like image 803
clerksx Avatar asked Nov 30 '25 21:11

clerksx


1 Answers

Known issue, see mbostock's issue's thread. If you need date.js get the one off the trunk as it does not conflict. https://github.com/mbostock/d3/issues/1302

like image 151
Nick Avatar answered Dec 02 '25 13:12

Nick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!