Fix hover line on the right side going past the plot's end.