Code Cleanup and Enhancements
- Aligned the graph to center of the view using translate function for
all the elements