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

Vertical resizing of visualization #323

Open
KevinDCarlson opened this issue Jan 10, 2025 · 3 comments
Open

Vertical resizing of visualization #323

KevinDCarlson opened this issue Jan 10, 2025 · 3 comments
Labels
enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations ui/ux User interface and user experience visualization Visualization and plotting

Comments

@KevinDCarlson
Copy link
Collaborator

Currently visualizations just grow horizontally as far as they want. This is pretty bad for big instances and models like those active here: https://next.catcolab.org/analysis/0194487e-de41-72d0-bb79-ec47c1c0bbc7

If there's a GraphViz parameter that lets us insist on a given bounding box so that this wouldn't be too hard, it would be really nice to be able to drag the visualization box vertically taller and reflow the graph.

@KevinDCarlson KevinDCarlson added the frontend TypeScript frontend and Rust-wasm integrations label Jan 10, 2025
@epatters epatters added ui/ux User interface and user experience enhancement New feature or request labels Jan 10, 2025
@epatters
Copy link
Member

epatters commented Jan 10, 2025

AFAIK, Graphviz does not let you set constraints like a bounding box, so that is not an option. (Someone should write a graph visualization tool with a flexible constraint engine but that's another story.)

What we can do:

  • Provide a drag handle to resize the visualization in the vertical direction, like Notion does for various components; this would not change the layout, only the view of it
  • Expose a few options for graph layout (directed or undirected, primary axis in directed case) to help work around bad layouts: this is partially implemented already but not exposed in the UI

@KevinDCarlson
Copy link
Collaborator Author

Thanks. So for instance switching the primary axis on the instance I linked would make the visualization run vertically instead of horizontally, one hopes?

@epatters
Copy link
Member

Yes, exactly.

@epatters epatters added the visualization Visualization and plotting label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations ui/ux User interface and user experience visualization Visualization and plotting
Projects
None yet
Development

No branches or pull requests

2 participants