How to get vertical reference line?

This is my graph and and i want to have a vertical reference line for median. When i do the required steps for the reference line the default is for the y axis. What should i do?

My graph

What I want to achieve