Coder Social home page Coder Social logo

Not compatible with D3 v4? about bihisankey HOT 5 OPEN

neilos avatar neilos commented on September 26, 2024
Not compatible with D3 v4?

from bihisankey.

Comments (5)

Neilos avatar Neilos commented on September 26, 2024

Thanks @northam. d3 v4 has split out the functionality into separate libraries.
You can include the additional and now separate library as follows:

<script src="https://d3js.org/d3-scale.v1.min.js"></script>

There are lots of other separate libraries as well, so if you run into any other similar issues you can solve in the same way

<script src="https://d3js.org/d3-array.v1.min.js"></script>
<script src="https://d3js.org/d3-collection.v1.min.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://d3js.org/d3-format.v1.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
<script src="https://d3js.org/d3-time.v1.min.js"></script>
<script src="https://d3js.org/d3-time-format.v2.min.js"></script>
...
etc

from bihisankey.

northam avatar northam commented on September 26, 2024

Nope. Default bundle of v4 combines all microlibraries. Error in your library is due to d3.scale.ordinal() has become d3.scaleOrdinal() in v4, and d3.behavior.drag has been renamed to d3.drag. There are more changes, which require revise the code.

from bihisankey.

Neilos avatar Neilos commented on September 26, 2024

Ahh. I was totally wrong. Sorry. Might not have time to change this for a while.

from bihisankey.

northam avatar northam commented on September 26, 2024

Compatibility with the latest D3 would be nice.
I did some modifications to your plugin to enhance styling and customization in my forked branch (with examples): https://github.com/northam/styled_sankey

from bihisankey.

mkpasala avatar mkpasala commented on September 26, 2024

@northam or @Neilos how can I customize the node shape to a polygon as shown in the below link . https://www.wikibudgets.org/sankey?id=2gamvvoaf

from bihisankey.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.