Moving label component as per changing value

As i checked example 1, i am stuck how to set chart component mode to x trace so after that i can get the label on my chart like this:

and how to get this vertical tracing line.
please help me