Clean up and remove hard coded values from multiseries panel.
Add max_rows to Multiseries panel configuration.
Reformat the code.