Clean up code, use of  implicitly unwrapped optionals
Redraw chart on rotation
Set function as private
Fix for zero values when min.y > 0
Cleanup