Git Product home page Git Product logo

Comments (8)

bhavyakelp avatar bhavyakelp commented on August 11, 2024 1

@bumbeishvili, I was finally able to achieve the chart I wanted. Thank you for your help !

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

Hi, it's not easily possible with this library, and not sure how to approach it at the moment

from org-chart.

bhavyakelp avatar bhavyakelp commented on August 11, 2024

@bumbeishvili are there any algorithms / packages that can help me achieve this ?

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

No idea

from org-chart.

bhavyakelp avatar bhavyakelp commented on August 11, 2024

@bumbeishvili , no worries, and thank you for your assistance.

If I use your codebase to achieve this behavior, I understand that I need to position the parent nodes at the top. Could you please guide me on which functions I should look into to make these changes?

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

I am guessing it will be along these lines

if (attrs.compact) {
this.calculateCompactFlexDimensions(attrs.root);
}
// Assigns the x and y position for the nodes
const treeData = attrs.flexTreeLayout(attrs.root);
// Reassigns the x and y position for the based on the compact layout
if (attrs.compact) {
this.calculateCompactFlexPositions(attrs.root);
}

from org-chart.

bhavyakelp avatar bhavyakelp commented on August 11, 2024

That helps, @bumbeishvili!

In the meantime, I was browsing through some of your projects, and I find them truly amazing!
But, I came across your secureLogic visualization, which is very similar to what I need.

Screenshot 2024-07-18 at 10 22 28 PM

If you see this chart is similar to an org chart but works in two directions (LR and RL)
So if I reciprocate this chart, I can then make it TB and BT, add my custom nodes and voila!

Is that a good idea and is it possible? I would like your view and input on this ......

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

Yes, it's similar, as I remember I did it from scratch, instead of using this library, I don't exactly remember how I did it, but If I were to do it again, I'd use the same Flextree library, I'd probably just change the direction of some branches from positive to negative coordinates

https://observablehq.com/@bumbeishvili/horizontal-collapsible-d3-flextree

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.