-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi parent #59
Comments
That won't be possible, since the org chart uses a tree algorithm, which expects a single parent. In general, here is my answer to a similar question on StackOverflow |
FYO, in the new, coming version, we will have multi links functionality. You will be able to specify connections with labels between any nodes It will look like this |
It got merged - #70 |
Is there a way to modify the HTML/SVG for the connection? For example, I want to make the line dotted and not have an arrow head. |
Yes, you can override https://stackblitz.com/edit/web-platform-nrybqp chart.connectionsUpdate(function (d, i, arr) {
d3.select(this)
.attr('stroke', (d) => '#152785')
.attr('stroke-linecap', 'round')
.attr('stroke-width', (d) => '5')
.attr('pointer-events', 'none')
// .attr("marker-start", d => `url(#${d.from + "_" + d.to})`)
// .attr("marker-end", d => `url(#arrow-${d.from + "_" + d.to})`)
.attr('stroke-dasharray', '20, 20');
}) |
Perfect! Any way to change the anchor points to the sides of the boxes rather than the top and bottom? |
I don't think so This is the relevant line if you decide to change source code by yourself Line 775 in 874bae3
|
Hello,
Can you give me a tip on how to customize this solution for a node to support multi parent.
The text was updated successfully, but these errors were encountered: