A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Category Axis placement



 
 
Thread Tools Display Modes
  #1  
Old June 6th, 2005, 10:39 AM
rvExcelNewTip
external usenet poster
 
Posts: n/a
Default Category Axis placement


I have a stacked bar chart, with total values of the bars being negative
or positive.

Can I place the Category Axis (X-axis) at the bottom of the chart,
without specifying a specific number?

Now I have put a fixed number on the scale tab for the Value axis (Y)
for "Cuts Category Axis (X) at".

This is rather inconvenient as the minimum values can change from one
run to another.


--
rvExcelNewTip
------------------------------------------------------------------------
rvExcelNewTip's Profile: http://www.excelforum.com/member.php...o&userid=15668
View this thread: http://www.excelforum.com/showthread...hreadid=376715

  #2  
Old June 6th, 2005, 11:03 AM
mangesh_yadav
external usenet poster
 
Posts: n/a
Default


You could have an activate event macro, something like

Private Sub Chart_Activate()
ActiveChart.Axes(xlValue).ActiveChart.Axes(xlValue ).CrossesAt =
Worksheets("Sheet1").Range("A1")
End Sub


Where Range A1 contains the figure you want the axis to cut through. A1
will have a formula like =MIN(A1:A10)

This is just for you to get an idea.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=376715

  #4  
Old June 6th, 2005, 05:05 PM
rvExcelNewTip
external usenet poster
 
Posts: n/a
Default


The last reply was the "ideal" solution to my problem. As the Y-values
do represent percentages growth or decline and the decline couldn't be
more than 100%, there is an absolute minimum to the scale.

The nice thing about the solution is that if the minimum data value is
e.g. -40%, the Y-scale doesn't extend to -100%.

Thanks.


--
rvExcelNewTip
------------------------------------------------------------------------
rvExcelNewTip's Profile: http://www.excelforum.com/member.php...o&userid=15668
View this thread: http://www.excelforum.com/showthread...hreadid=376715

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make the Y axis in an excel chart the category axis? megnadoodle Charts and Charting 2 March 29th, 2005 09:27 AM
Hard carriage return in Category Axis Title? E Harris Charts and Charting 4 March 16th, 2004 07:47 PM
X Axis Category Label not appearing Janna Charts and Charting 0 February 13th, 2004 09:41 PM
Category axis problem Giel Weysters Charts and Charting 1 November 29th, 2003 04:52 AM
x axis category name Jen Charts and Charting 3 October 21st, 2003 01:22 PM


All times are GMT +1. The time now is 12:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.