Neilos / bihisankey

A d3 javascript library/plugin for drawing bi-directional hierarchical sankey diagrams

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I customize the node shape from rectangle?

mkpasala opened this issue · comments

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

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.