Stretch the graph over the width of the page
See original GitHub issueIs your feature request related to a problem? Please describe. When displaying a tall graph using the dagre layout with many nodes and few steps, the labels on the links between nodes overlap and labels on them become unreadable.
Describe the solution you’d like The ability to stretch the graph over the width of the page.
Describe alternatives you’ve considered
I could use Orientation.TOP_TO_BOTTOM
but this would make the link labels difficult to read as the are mostly vertical. It would also not fit on the page well because the labels in the nodes are quite long. Maybe there are some things I missed, do you have any tips to make this readable?
Additional context
Current issue:
Alternative solution:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Horizontal Stretch - Properties, Graph, & Examples
Horizontal stretches happen when a base graph is widened along the x-axis and away from the y-axis. Learning how we can stretch graphs...
Read more >Scale a worksheet - Microsoft Support
Follow these steps: Click the Page Layout tab on the ribbon. In the Scale to Fit group, in the Width box, select 1...
Read more >Vertical Stretches and Shrinks - The Biology Project
When a graph is stretched or shrunk vertically, the x -intercepts act as anchors and do not change under the transformation. Definition. For...
Read more >How to stretch a chart by width in BIRT - Stack Overflow
Seems like setting charts size in %'s makes it default to the embed element. Try providing the actual value: .chart { border-style: solid; ......
Read more >Math 30-1: RF3 - Horizontal and Vertical Stretches - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The parent element of the component needs to have a width and height set on it, so the graph component can fill it.
See how the ‘.page’ div on this demo does it:
https://stackblitz.com/edit/ngx-graph-demo?file=src%2Fapp%2Fapp.component.scss
I played with the settings in an attempt to get something readable and eventually settled on this: