Scatter Graph Line Ticks

-Added line ticks to scatter graph.
-Consolidated some code into functions to clean up a lot of repeated
code.
-Added checks to make sure the element wasn't already in the Data Array