Refactored straight line check into normalizeYHelper. Fixed weird boolean check of normalize.
Refactored straight line check into normalizeYHelper. Fixed weird boolean check of normalize.

googleinterns/sensors-data-visualizer,googleinterns/sensors-data-visualizer,googleinterns/sensors-data-visualizer,googleinterns/sensors-data-visualizer