Mast question hai!!
The symmetry of this distribution is such that half ring becomes negatively charged,, other positively charged...vector E at the centre of the ring is directed to right..

we will have to integrate this projection and we obtain

this is the electric field at center.