Fixed y axis min and max calculations when passing tickValues

Fixes #182