Refactoring some y-axis code
Adding angular trigger to hide/show display type