improve graph zoom