Code Monkey home page Code Monkey logo

Comments (5)

bobokeke0 avatar bobokeke0 commented on August 21, 2024

maybe there's a way to render portions of the tree and render the rest as they are expanded?

from family-chart.

donatso avatar donatso commented on August 21, 2024

hmm, I am not sure how big the tree have to be. This one is pretty big, but it work ok, I think.. https://donatso.github.io/family-chart/examples/wiki-tree/?wiki_id=Q855
Can you give me some example of that very large tree?

from family-chart.

bobokeke0 avatar bobokeke0 commented on August 21, 2024

sorry for the late reply. The example you showed seem to have less than 50 nodes (individual names). I'm looking to render a tree with almost 1000 nodes.

from family-chart.

donatso avatar donatso commented on August 21, 2024

uh, 1000 is a lot. svg cannot handle so many cards.

best I can do for you for now is suggest this little hack that cuts tree before rendering it.
https://codesandbox.io/s/family-chart-static-forked-qwbrw1?file=/index.html
default is max_depth=1, which means that only parents and children and their spouses for the selected person will be shown.
then you have to select child or parent to see their relatives.
max_depth=2 will show grandparents and grandchildren and so on...
I hope it helps!

from family-chart.

bobokeke0 avatar bobokeke0 commented on August 21, 2024

Haha yeah. This took is amazing but I'm pushing it with that many nodes.

That's perfect. Cutting the tree before rendering actually give a better experience. Thanks a million!!

from family-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.