Show/Hide Graph labels

I needed to hide the labels in my project so I have implemented the functions for that.
I tested it a little. Please revise the code and merge it if you think it is helpful.