update graph bars only when it's visible