Displaying the last value in the top right corner of the graphs does not makes a lot of sense in graphs other than elevation. (For e.g. usually in the case of speed it will display some close to zero speed what I run when I hit the stop button.)
I also added an optimalization: the paint callback is skipped for hidden graphs.
By thinking it further it would be useful to move the current values of the graphs there to spare some screen esate at the bottom.
Displaying the last value in the top right corner of the graphs does not makes a lot of sense in graphs other than elevation. (For e.g. usually in the case of speed it will display some close to zero speed what I run when I hit the stop button.)
I also added an optimalization: the paint callback is skipped for hidden graphs.
By thinking it further it would be useful to move the current values of the graphs there to spare some screen esate at the bottom.