d3 / d3-sankey

Visualize flow between nodes in a directed acyclic network.
https://observablehq.com/collection/@d3/d3-sankey
BSD 3-Clause "New" or "Revised" License
821 stars 255 forks source link

How can I change d3-snakey.js file to make two d3 versions working together? #54

Closed Smmw closed 5 years ago

Smmw commented 6 years ago

How can I d3-snakey.js file to make two d3 versions working together?

some of my chart is using the d3-v3, and the sankey is using the d3-v4.

I have changed the global.d3 to global.d3v4 in both d3-v4.js file and d3-sankey.js file, but it is not working properly.

Please help me. Thanks!

mbostock commented 5 years ago

Please use Stack Overflow tag d3.js to ask for help. Stack Overflow provides a better collaborative forum: thousands of D3-related questions have been asked there, and some answers may be relevant to you.

When asking for help, please include a link to demonstrate the issue, preferably as an Observable notebook. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.

If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.

Thank you! 🤗