Explanation:
When the test charge is positive, the force it experiences is parallel to the electric field at that point, and if it is negative the force will be opposite to the field. Therefore, the direction of the electric field is in the positive direction of the axis.