ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-05-2005, 03:06 PM
DavidNHFCU
Guest
 
Posts: n/a
lines on bar charts

If I graph a simple straight trend line on a chart, how do I get it to run
behind the bars on my chart - rather than showing across the bars?
Reply With Quote
  #2  
Old 05-06-2005, 10:06 AM
John Mansfield
Guest
 
Posts: n/a
RE: lines on bar charts

David,

To do so, you will need to create an overlay chart. An overlay chart is
simply one chart laid over another. First create the Excel generated line
and bar chart. The, make a copy of the chart. Delete or make tranparent
everything in the second chart with the exception of the columns. Finally,
overlay the second chart over the first.

What I'm describing above sounds like a lot of work. However, Jon Peltier
has an example with VBA code that automates much of the process. Jon Peltier
describes this technique here. You can download the example with code from
this link as well.

http://peltiertech.com/Excel/Charts/AlignCharts.html

----------------------------
Regards,
John Mansfield
http://www.pdbook.com


"DavidNHFCU" wrote:

> If I graph a simple straight trend line on a chart, how do I get it to run
> behind the bars on my chart - rather than showing across the bars?

Reply With Quote
  #3  
Old 05-06-2005, 05:06 PM
bj
Guest
 
Posts: n/a
RE: lines on bar charts

another way to do this is to use the data from the trend line and plot out a
curve representing the trendline. put it on a different axis so that it can
plot behind th ecolumns.

"DavidNHFCU" wrote:

> If I graph a simple straight trend line on a chart, how do I get it to run
> behind the bars on my chart - rather than showing across the bars?

Reply With Quote
  #4  
Old 05-07-2005, 12:06 PM
Jon Peltier
Guest
 
Posts: n/a
Re: lines on bar charts

bj -

Did you try this? The trendline, for a series on any axis, is drawn in front of a
bar or column series, on any axis. So are connecting lines for any marker-and-line
style series (scatter and line charts), and error bars.

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

bj wrote:

> another way to do this is to use the data from the trend line and plot out a
> curve representing the trendline. put it on a different axis so that it can
> plot behind th ecolumns.
>
> "DavidNHFCU" wrote:
>
>
>>If I graph a simple straight trend line on a chart, how do I get it to run
>>behind the bars on my chart - rather than showing across the bars?


Reply With Quote
  #5  
Old 05-09-2005, 11:06 AM
bj
Guest
 
Posts: n/a
Re: lines on bar charts

You are right, My suggestion does not work with Excel.. I remember doing it
so now I wonder what program I was using at the time.

"Jon Peltier" wrote:

> bj -
>
> Did you try this? The trendline, for a series on any axis, is drawn in front of a
> bar or column series, on any axis. So are connecting lines for any marker-and-line
> style series (scatter and line charts), and error bars.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> Tutorials and Custom Solutions
> http://PeltierTech.com/
> _______
>
> bj wrote:
>
> > another way to do this is to use the data from the trend line and plot out a
> > curve representing the trendline. put it on a different axis so that it can
> > plot behind th ecolumns.
> >
> > "DavidNHFCU" wrote:
> >
> >
> >>If I graph a simple straight trend line on a chart, how do I get it to run
> >>behind the bars on my chart - rather than showing across the bars?

>
>

Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


All times are GMT -4. The time now is 09:53 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0