How to Plot a Vertical Line on an Excel Chart Using a Date in WPS Spreadsheets
Question details
The user wants to add a vertical reference line to an existing Excel-compatible chart in WPS Spreadsheets, based on a date value stored in another table.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- Creating or editing a chart where a selected date from another table should appear as a vertical marker across the plot area.
- Observed behavior
- The chart currently does not show a vertical marker for the referenced date; the goal is to add a clear vertical line at that date without disrupting the original series.
Open the workbook that contains the chart and the source date. Confirm whether the chart’s horizontal axis is a date axis, because a true date position is required for the vertical marker to align correctly.
Create a separate series with the target date and two Y-values
Use this method when you already have a chart and the reference date is stored in another table. It plots a vertical line from the bottom of the plot area to the top without changing the original chart data.
This method uses a two-point helper series with the same date as the x-value. One point starts at zero and the other reaches the maximum y-axis value, so WPS Spreadsheets draws a vertical segment across the chart.
In the workbook, create a small helper table with three cells: the reference date, 0, and a value equal to the chart’s maximum y-axis value or slightly higher.
Select the helper cells and press Ctrl+C. Click the chart, go to Home > Paste > Paste Special, choose Add cells as new series, select Series in Columns, and check Categories in First Column, then click OK.
Right-click the newly added series and choose Change Series Chart Type. Set the chart type for this series to Line or Scatter with Straight Lines so the two points connect vertically.
Right-click the new line, open Format Data Series, set a solid line color, remove or hide markers, and increase line width if needed.
Right-click the horizontal axis, choose Format Axis, set Axis Type to Date axis, and adjust the minimum and maximum bounds so the selected date appears in the visible chart range.

Plot the marker on a secondary date axis when the main axis is text-based
Use this option when your existing chart does not use a true date axis and the helper series needs its own independent date position.
Add a Vertical Date Line to Your Chart in WPS Spreadsheets
Use WPS Spreadsheets to add a vertical reference line from a date stored in another table. Create a small helper series, paste it into the chart, and format it as a line so your Excel-compatible chart gets a clear milestone marker.
- 1. Open your workbook: Launch WPS Office and open the Excel-compatible workbook that contains the chart and the reference date.
- 2. Create the helper series: In three adjacent cells, enter the target date, the value 0, and the maximum y-axis value or slightly higher.
- 3. Paste the series into the chart: Copy the cells, click the chart, and go to Home > Paste > Paste Special; add the cells as a new series with categories in the first column.
- 4. Format the vertical line: Right-click the new series, open Format Data Series, choose a solid line color, and remove markers to display a clear vertical marker.
- 5. Test the date marker: Change the date cell to another date and confirm the vertical line moves to the correct position on the chart.

Frequently Asked Questions
Why does my vertical line not appear at the selected date?
Usually the chart is using a text axis or the new series was added as a column or bar. Add the series as a two-point line series, confirm the horizontal axis is set as a Date axis, and check the axis minimum and maximum bounds.
Can I move the vertical line by changing one cell?
Yes. If the helper series references the target date cell, changing that cell updates the series x-value. The chart line moves after you edit the cell.
Does this method work in Microsoft Excel files opened in WPS Office?
Yes. WPS Spreadsheets opens and saves Excel-compatible XLSX files, and the helper series approach works in both WPS and Excel charts.
What if my chart y-axis maximum changes automatically?
Use a value slightly larger than the expected maximum or set a fixed maximum for the value axis. A fixed maximum is usually easier for keeping the vertical line full-height.
Can I add multiple vertical date lines to one chart?
Yes. Add one helper series for each reference date, or build one helper table with each date and matching zero and maximum values, then add and format all markers with the same line style.




