Added auto-max calc to bar and stackedbar format functions.