Neilos / bihisankey

A d3 javascript library/plugin for drawing bi-directional hierarchical sankey diagrams
68 stars 24 forks source link

How can I customize the node shape from rectangle? #17

Closed mkpasala closed 5 years ago

mkpasala commented 5 years ago

I want to customize the node shape from default rectangle to my own custom shape for example Right Chervon.

mkpasala commented 5 years ago

https://www.wikibudgets.org/sankey?id=2gamvvoaf

Neilos commented 5 years ago

I'm really sorry, but it's been 4 years since I wrote this library, and I can barely remember how any of it works. That is why this library is no longer maintained.

The shape itself is not hard coded into the library so you may be able to configure it. The example app.js file I provided may provide some clues. In particular look for .select("rect") and see if you can replace them with an svg path for the Chevron shape (you'll also need to amend the attributes accordingly). For example, check out this line in the gist provided.