Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Force standard chart size

I have a set of horizontal bar charts. The x-axis (vertical) values are
questions asked on a survey. The scale for the y-axis is set to a
minimum of 1 and maximum of 7 (the upper and lower limit of the
answers). However, the size of the chart adjusts based on the length
of the question. How can I keep the size of the chart the same? I'd
rather have more white space with the question text so that as I flip
the the various charts, the bar length is always relative to the
previous charts.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Force standard chart size

I've done this two ways.

1. Hide the real X axis, and set up a dummy series along the X axis with invisible
points at each tick label position. Use a data label at each point as a substitute
tick label. Since the lengths of the real tick labels are constant (zero), the
plotting rectangle doesn't have to shrink within the plot area to allow for longer
labels.

2. After creating each chart, and knowing the dimensions of the inner part of the
PlotArea (its read-only .InsideLeft and .InsideWidth properties), use VBA to adjust
the PlotArea .Left and .Width properties, which are read-write, until the
appropriate .InsideLeft and .InsideWidth are achieved. This file might have some
code you can refer to:

http://peltiertech.com/Excel/Zips/Al...Dimensions.zip

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

waxwing wrote:

I have a set of horizontal bar charts. The x-axis (vertical) values are
questions asked on a survey. The scale for the y-axis is set to a
minimum of 1 and maximum of 7 (the upper and lower limit of the
answers). However, the size of the chart adjusts based on the length
of the question. How can I keep the size of the chart the same? I'd
rather have more white space with the question text so that as I flip
the the various charts, the bar length is always relative to the
previous charts.

Thanks.


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
shrink excel page to print out standard size clara Excel Discussion (Misc queries) 1 May 12th 10 12:17 AM
How to change column pixels to the standard size? scott Excel Worksheet Functions 0 October 23rd 06 04:33 PM
setting standard comment size for all rows in a worksheet. RALIB Excel Discussion (Misc queries) 1 June 26th 06 11:05 PM
Standard Button Size [email protected] Excel Programming 0 October 24th 04 01:31 PM
File size problem: standard remedies not working. [email protected] Excel Programming 2 December 31st 03 08:10 PM


All times are GMT +1. The time now is 11:03 PM.

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"