Control the graph, chart size in each New Window Tab.
Jan 26, 2020 3:30 AM(775 views)
I have a problem with graph size in each tab of the new window.
I have multiple tabs in a new window and the last tab contents a multiple vertical distribution chart (10 or more) enclose in a VListBox() function. The distribution chart are quite long in size and whenever I clicked to other tabs the graph in these tab seem to be stretched as the length of the distribution chart.
Is there any way to control the size of each chart independently followed by tabs or to set size automatically fits the user view?
When working with tabbed reports, I like to match the stretching behavior between the tabs. Some reports, like Distribution, do not stretch by default. If you have 10 reports stacked vertically, there is probably not enough vertical screen space to make them stretch effectively. Adding a Scroll Box around the content of this tab will give you control over the size of the tab so that the tall content does not affect other tabs:
Reports like Graph Builder stretch by default, but this behavior can also be controlled. If you want to keep Graph Builder from stretching to match the size of one of the other tabs, you can turn off the "Fit to Window" option:
Tab Page Box(
dt << Graph Builder(
Size( 800, 600 ),
Show Control Panel( 0 ),
Fit to Window( "Off" ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
You will probably only need one of these options in order to match the behavior between the tabs. I would probably lean toward adding the ScrollBox around the non-stretchable reports. If you don't add a ScrollBox around large reports, then the scrolling will occur at the window level. The result would be that the tab titles scroll off the screen when you scroll down in the tall report, making it difficult to move back and forth between tabs.