Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2
Default Problem adding a vertical line to a graph with months on x-axis

I'm trying to add a vertical line that would indicate the current
month, i.e. May 2007, to a graph with a Line and a Stacked Area, and
months (e.g. January 2004 through December 2007) instead of days on
the x-axis. I've tried different variations of
http://peltiertech.com/Excel/Charts/...ertSeries.html, without
success. Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Problem adding a vertical line to a graph with months on x-axis

What isn't working?

Is your X axis a time-scale axis? You need to use the corresponding date as
the X values of the XY series that controls the vertical line. In the
time-scale axis, is your Base Unit days? Then you can use the date you want
as the XY series' X value. Is the Base Unit months? Then you need to use the
number of months since January 1900. If it were my chart, I'd use days as my
Base Unit, and the date for the XY series, because it's easier.

Is your X axis a category axis, using the months as labels, not as numerical
dates? Then count categories from the X axis minimum, and use that as your X
value for the XY series.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


wrote in message
ups.com...
I'm trying to add a vertical line that would indicate the current
month, i.e. May 2007, to a graph with a Line and a Stacked Area, and
months (e.g. January 2004 through December 2007) instead of days on
the x-axis. I've tried different variations of
http://peltiertech.com/Excel/Charts/...ertSeries.html, without
success. Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2
Default Problem adding a vertical line to a graph with months on x-axis

It worked! Thank you for your help, Jon.

I'd prefer months on the X-axis because the data is recorded on a
monthly basis. I use the first day of each month to represent that
month because Excel doesn't (to my knowledge) have a data type for
months.

Is there some neat trick for displaying percentages on the secondary Y-
axis, in addition to the absolute values on the primary axis? The
difficulty is that the secondary Y-axis is already in use for the
vertical line.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding more series to 2 axis line graph kate Excel Discussion (Misc queries) 2 February 2nd 07 07:38 PM
can I make the vertical axis the category axis in Excel line graph power1 Charts and Charting in Excel 1 March 20th 06 08:45 PM
Automatically adding Vertical lines after certain points in line graph matthoffman33 Charts and Charting in Excel 4 March 7th 06 01:50 AM
X-Y Graph with Months, Not Date on Axis Sam Fertel Excel Discussion (Misc queries) 1 January 10th 06 04:15 AM
Can you have a vertical line graph in Excel 2003 smithers2002 Charts and Charting in Excel 3 January 12th 05 01:27 PM


All times are GMT +1. The time now is 06:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"