Vertical line in Line chart as a Marker of some event

SergSlim

New Member
Joined
Feb 18, 2013
Messages
19
Hello,

I have a table with dates and values.
I created a Line chart that has dates in horizontal Axis, and values in vertical axis.

This shows how much energy I have consumed throughout the years.

I would like to add some kind of marker to the chart, being a simple vertical line and in the Legend to have the explanation, such as "Electric boiler bought".
I can't figure out how to accomplish it.

I tried adding few extra lines on the needed dates with one value being 0 and other being maximum (such as 3000) and adding another column which would be used as a name for the line in the Legend.
But it's very inconvenient and it breaks the lines of the chart for that date.
 

Attachments

  • Screenshot 2024-01-22 161157.png
    Screenshot 2024-01-22 161157.png
    242.2 KB · Views: 17
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top