update graph ticks and hover effect