Auto-align text depending if is showing the graph or not

If the graph is activated, the alignment is left, otherwise, right