Add vertical line to Excel chart: scatter plot, bar and line graph ... On the Format Axis pane, under Axis Options, type 1 in the Maximum bound box to ensure that your vertical line extends to the top of the chart. Hide the right y-axis by setting Label Position to None. Your chart with a vertical line is done, and now it's time to try it out. Type another text label in E2, and see the vertical line move accordingly.