Fixed reversal of min/max for yaxis