UI elements (e.g. Button, Slider) can be composable using the TableLayoutPanel container operator. A great feature is the ability to override a lot of the appearance of all children via their Font property, or even via the same property of the container, that overrides all children.
Unfortunately, the equivalent pattern for Graph related operators is not available, since the property is not exposed at the level of the graph operator. This is unfortunate as one of the most annoying behaviors that result from the composition of graphs in containers is how small labels immediately get since they scale to the size of the cell in the container.
There are a few decisions that should be considered to allow this scaling:
Should we expose the Font property in the Graph nodes or just Font Size?
Should the Font Size be scaled automatically to the size of the cell ?
Should the Font property of the container (e.g. TableLayoutPanel) attempt to override all graph children
How to handle the different text elements on the container? (e.g. x/y axis, x/y axis labels, title, series labels)
UI elements (e.g. Button, Slider) can be composable using the
TableLayoutPanel
container operator. A great feature is the ability to override a lot of the appearance of all children via theirFont
property, or even via the same property of the container, that overrides all children.Unfortunately, the equivalent pattern for Graph related operators is not available, since the property is not exposed at the level of the graph operator. This is unfortunate as one of the most annoying behaviors that result from the composition of graphs in containers is how small labels immediately get since they scale to the size of the cell in the container.
There are a few decisions that should be considered to allow this scaling: