add support for setting y-axis max