fixed linegraph bug and added xy scale gesture