Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting,microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Resize chart area without resizing plot area

Hi,
With the help of your answers on my question of July 30 and some digging
in excel4 I succeeded in making the inside of the plot area exactly a
square with predefined dimensions.

I made a function that finds the dimensions of a rectangle that encloses
all elements in the plot including title, axes-titles and text boxes.

Now I want the chart area to fit tightly around all the actual plot
elements. But I do not succeed in resizing the chart area without
resizing the plot.

Is there some (hidden) feature that switches off autoresizing like there
is one for the font?

When I have a solution I will publish the final results of my endeavours
on this newsgroup of course.

Tanks,
Janwillem

  #2   Report Post  
Posted to microsoft.public.excel.charting,microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Resize chart area without resizing plot area

Hi Janwillem,

With the help of your answers on my question of July 30 and some digging
in excel4 I succeeded in making the inside of the plot area exactly a
square with predefined dimensions.


I'll be interested to see. Not straightforward, charts have something of a
free spirit about them.

I made a function that finds the dimensions of a rectangle that encloses
all elements in the plot including title, axes-titles and text boxes.


So you are saying there's nothing between the plot-area and the outside of
the chart. The plot area of course has two parts to it, the graph area and
an area outside for axis lables etc. Though I'm sure you're very well aware
of that.

Now I want the chart area to fit tightly around all the actual plot
elements. But I do not succeed in resizing the chart area without
resizing the plot.


Could you size the chart area as required first, then size the plot area to
slightly less than the chart area. Actually that would mean sizing the
chartobject slightly larger than required, even if it doesn't have a border.

Is there some (hidden) feature that switches off autoresizing like there
is one for the font?


AFAIK - no, though I'd be happy to learn otherwise. There is autoscaling for
3D chart types but I don't think that will help you.

Regards,
Peter T


  #3   Report Post  
Posted to microsoft.public.excel.charting,microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Resize chart area without resizing plot area


With the help of your answers on my question of July 30 and some digging
in excel4 I succeeded in making the inside of the plot area exactly a
square with predefined dimensions.

I made a function that finds the dimensions of a rectangle that encloses
all elements in the plot including title, axes-titles and text boxes.

Now I want the chart area to fit tightly around all the actual plot
elements. But I do not succeed in resizing the chart area without
resizing the plot.


Why not just make the chart area sufficiently large to always encompass
the axis elements? Otherwise you will have to endlessly tweak the chart
area, the plot area, and other elements. You can make the chart area
invisible (no border, no fill) if you want the charts closer together
without apparent overlap.

Is there some (hidden) feature that switches off autoresizing like there
is one for the font?


No.

When I have a solution I will publish the final results of my endeavours
on this newsgroup of course.


If you are very patient, you could do this with an iterative VBA
approach. The problem is that it is never going to be perfect, and
sometimes it will be off by a pixel, no matter how loudly you admonish
Excel to behave.

One trick is to hide all of the axis ticks and labels, so that the plot
area isn't much larger than the inside area, and so that the margin
between plot area and inside area does not have to adjust for label
format changes, etc. Use the arbitrary axis scale trick from my web site
for your labels, which lets the labels go outside the plot area without
stretching the inside area. See this page for details:

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

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
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
Resize plot area in a pivot chart Aaron Charts and Charting in Excel 1 August 24th 07 08:44 PM
Unwanted Plot Area Resizing diana artemis Charts and Charting in Excel 0 March 4th 07 02:58 AM
Resize plot area in a chart area Darlene Excel Discussion (Misc queries) 0 July 10th 06 02:50 PM
How to increase chart area without affecting plot area? [email protected] Charts and Charting in Excel 2 April 21st 06 09:05 PM
Resize chart area without resizing plot area Janwillem van Dijk Charts and Charting in Excel 2 August 2nd 05 01:52 AM


All times are GMT +1. The time now is 05:47 AM.

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

About Us

"It's about Microsoft Excel"