Skip to content
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

Repel Text in Graph Mode #971

Open
andynameistaken opened this issue Apr 10, 2022 · 2 comments
Open

Repel Text in Graph Mode #971

andynameistaken opened this issue Apr 10, 2022 · 2 comments
Labels
foam-dataviz Related to data visualization good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andynameistaken
Copy link

Is your feature request related to a problem? Please describe.

In graph mode text of nodes overlaps and it is makes it unreadable and useless.

Describe the solution you'd like

Text in graph mode should be repelled from edges and each other

Describe alternatives you've considered

The alternative of defaults I wrote would be setting strength of repel force in form of slider that allows fine tune this setting.

Screenshots or Videos

image

@riccardoferretti riccardoferretti added foam-dataviz Related to data visualization help wanted Extra attention is needed good first issue Good for newcomers labels Apr 11, 2022
@sn3akiwhizper
Copy link
Contributor

I'm looking into adding this functionality but am wondering about the best way to customize the repulsion force?
Some options I'm thinking about are:

  1. Add another style field to the "foam.graph.style" settings variable
  2. Add slider to the "Controls Box" in the graph view, to which we could add a drop-down called something like "Graph Settings" with a slider to change the force value, and would open space for future graph settings to change on the fly

Option 1 would be more static and might cause frustration with the need to experiment until the overlap is gone. Option 2 might allow for changes on a as-needed basis.

Also: would the slider in Option 2 be able to save its value to the settings value described in Option 1?

@andynameistaken
Copy link
Author

In realistic way for the end user it would be preferable to have button, that unfolds as a list of sliders and checkboxes and configuration would be stored in config.json. Later on the road when you (hopefully) will add new options like not allowing for crossing the edges, setting the repel force, changing graph representation algorithm - the user will know where to look for the new features.

Options should be permanent, because it is the human intuition when one change the slider or knob (except the timer) it stays changed and it would lead to many frustrations found in the other state.
But adding option that allows to have different settings per workspace might be good idea, because different graphs might look better with different settings.

If you have any other questions in terms of the UI/UX or you would like to see some new ideas to implement I am happy to help - I tried many programs using graph-based representation of the informations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foam-dataviz Related to data visualization good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants