Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
rvExcelNewTip
 
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   Report Post  
mangesh_yadav
 
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   Report Post  
rvExcelNewTip
 
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

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
How do I change the category axis number formatting in a Pivot Ch. Cultcab Charts and Charting in Excel 0 April 19th 05 12:26 AM
Align Clustered Column Chart Category Axis Labels Stephanie Charts and Charting in Excel 1 April 7th 05 03:21 PM
How do I make the Y axis in an excel chart the category axis? megnadoodle Charts and Charting in Excel 2 March 29th 05 09:27 AM
Bar chart & Category (x) axis labels Airi A. Charts and Charting in Excel 0 March 15th 05 03:09 PM
Axis display as category doco Charts and Charting in Excel 4 December 12th 04 04:45 PM


All times are GMT +1. The time now is 04:19 AM.

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"