Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
jthimagesolutions
 
Posts: n/a
Default Can a value axis autoscale to something other than 0 for the min?

I know how to manually change the scale on a value axis, but is there a way
to have the autoscale function automatically maximize the data in the chart?
This is for a dynamic chart that can change when certain selection items are
chosen from drop-down menus.

For example, one set of data ranges from 6 to 9, so I would want the scale
to be 5 to 10. Then, the selections change, and the data displayed in the
chart now ranges from 31 to 39. I want the scale to be 30 to 40, not 0 to 40.

Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default Can a value axis autoscale to something other than 0 for the min?

Unfortunately, Excel's axis autoscale algorithms do not suit your (or my)
preferences. The minimum scale will only NOT be zero if the data spans
positive and negative numbers, or if the minimum is greater than (about) 65%
of the maximum.

If you can write your own algorithms to calculate axis limits, you can put
these formulas into worksheet cells, then use VBA to link the axis to these
cells, using this technique:

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

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

"jthimagesolutions" wrote in
message ...
I know how to manually change the scale on a value axis, but is there a way
to have the autoscale function automatically maximize the data in the
chart?
This is for a dynamic chart that can change when certain selection items
are
chosen from drop-down menus.

For example, one set of data ranges from 6 to 9, so I would want the scale
to be 5 to 10. Then, the selections change, and the data displayed in the
chart now ranges from 31 to 39. I want the scale to be 30 to 40, not 0 to
40.

Can this be done?



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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
how to add a second x axis with same Y axis value in one plot Mike Charts and Charting in Excel 1 October 19th 05 08:42 AM
Secondary Axis Match Primary Axis Gridlines [email protected] Charts and Charting in Excel 1 July 31st 05 09:23 PM
Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis [email protected] Charts and Charting in Excel 0 July 13th 05 09:30 PM
can't change how data on 2nd axis is being displayed Rebekah Charts and Charting in Excel 1 May 4th 05 02:51 PM


All times are GMT +1. The time now is 10:57 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"