JAL-1155 fix panel length calculation for grouped graphs and refactor to alignment...