Graphs value popup & selector line

When cursor is near the right edge of the window value of the popup is not visible. 
This change makes the popup to appear at the left side of the cursor when it reaches the right edge.

Also sometimes the value line selector is visible at the left side of the graphs value area. This is now fixed.