Update graph preview on unit type change