Elevation Graph not Working - Solved

My elevation graph has not been showing a line for years but I have now solved it. 
if I pause a ride then restart it the elevation graph starts working. 
I now do this at the start of every ride.

Hope this helps others.