Code Monkey home page Code Monkey logo

Comments (7)

AykutSarac avatar AykutSarac commented on April 28, 2024 8

Thanks for your suggestion. I will definitely consider adding this.

from jsonvisio.com.

fredrikj31 avatar fredrikj31 commented on April 28, 2024

@AykutSarac Do you use a library to make the graph, or have you created the layout on your own?

I think it would be cool if you could click on the element, and it will collapse the clicked parents children.

from jsonvisio.com.

AykutSarac avatar AykutSarac commented on April 28, 2024

@AykutSarac Do you use a library to make the graph, or have you created the layout on your own?

I think it would be cool if you could click on the element, and it will collapse the clicked parents children.

I've used the reaflow library. The library itself doesn't have collapse feature built-in though it does have delete node which removes all connectes nodes and edges of parent. Something similar could be implemented.

from jsonvisio.com.

fredrikj31 avatar fredrikj31 commented on April 28, 2024

Yeah maybe it could just be deleted. But I think that the delete functionality maybe causes a lot of performace issues. Would it not be better to just add a javascript display: hidden; and box to the child nodes?

from jsonvisio.com.

AykutSarac avatar AykutSarac commented on April 28, 2024

Yeah maybe it could just be deleted. But I think that the delete functionality maybe causes a lot of performace issues. Would it not be better to just add a javascript display: hidden; and box to the child nodes?

Sounds good.

from jsonvisio.com.

AndrewLaganaro avatar AndrewLaganaro commented on April 28, 2024

I support that, would be really useful

from jsonvisio.com.

oliverbutler avatar oliverbutler commented on April 28, 2024

We've got some legacy JSON objects with huge values on some sections.

Some of these can make the box 10 times longer than it is high.

I'm happy to try to solve this in a PR at some point, but possibly some kind of inline truncate, on the value level could be nice (That un-truncates if you click it)

Screenshot 2022-09-20 at 14 36 44

from jsonvisio.com.

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.