function to draw vertical line between time values