update xaxis for graph