Giter Club home page Giter Club logo

Comments (9)

bumbeishvili avatar bumbeishvili commented on June 9, 2024 1

Hi, you have the possibility to connect any node to any node

https://stackblitz.com/edit/js-tpbt7r?file=index.html

You also have the possibility to style it differently

connectionsUpdate: function (d, i, arr) {
d3.select(this)
.attr("stroke", d => '#E27396')
.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})`)
},

1 - you can use connections to achieve something like that
2 - You can already adjust node positions artificially, but providing bigger width and height than it needs and then manipulating margins and padidngs inside
3 - You can customize it as you want in connectionsUpdate method
4 - You control the data, you are free to restructure it any way
5 - That is certainly weak area of the library - It would help to have documentation and examples highlighting what I wrote above

from org-chart.

bumbeishvili avatar bumbeishvili commented on June 9, 2024 1

Node can't have 2 parents

from org-chart.

harinvp avatar harinvp commented on June 9, 2024

from org-chart.

harinvp avatar harinvp commented on June 9, 2024

Hi @bumbeishvili
Could you please throw some light on the above? Like how can I approach the code modifications if I want to achieve the above? Thank you!

from org-chart.

bumbeishvili avatar bumbeishvili commented on June 9, 2024

@harinvp I could not understand the previous message exactly, can you draw the layout roughly and post it as an image ?

from org-chart.

harinvp avatar harinvp commented on June 9, 2024

IMG_1457
Thank you! Here is the image attached. In this example the primary reporting line (Red) is Ian -> Ava, Sohphie and Ava -> Amol. In the secondary reporting line (Green) is Ian ->Sophie-> Ava, Amol. So basically same people but two kinds of reporting. It would be great if we can represent both lines in same chart ( and showing it in two different styles like colors or line border)

from org-chart.

veranika-shvakava avatar veranika-shvakava commented on June 9, 2024

Hi @bumbeishvili!
I would also like to clarify whether a node can have two parents? If it can, then how can this be achieved?
Below is an example
Screenshot_2

from org-chart.

veranika-shvakava avatar veranika-shvakava commented on June 9, 2024

Node can't have 2

Got it. However, can we center the last card? If node cannot have two parents, just center the last card and use Multi Node Connections...
InkedScreenshot_2_LI

from org-chart.

Arkarrow avatar Arkarrow commented on June 9, 2024

Hi @veranika-shvakava👋 !
I have the same problem as you, did you find a solution?

from org-chart.

Related Issues (20)

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.