chart shift working version with refactored view controller