次の方法で共有


Visio 2007: PivotDiagram Tips and Tricks, part 3

The default PivotDiagram layout is a hierarchy with spacing of 9.5 mm (or 0.375 in) between shapes. This works pretty seamlessly for a lot of data out there, but one of the powerful aspects of the PivotDiagram feature is your control over how your shapes are laid out. PivotDiagrams use the standard Visio layout feature available in all diagrams (Shape>Configure Layout…)

Tightening the Spacing Between Shapes

This is an example of the default spacing for a new PivotDiagram:

The quickest way to decrease the space between shapes is to change the page default for layout spacing. To do this, go to "Shape>Configure Layout…" and change the Spacing value (here I changed it to 4 mm). Since the breakdown shape (the one that tells you which category you added – in the above diagram it is the shape with "Animal" in it) gets in the way at these tighter spacings, you can turn it off by going to "PivotDiagram>Options…" and unchecking "Show breakdown shapes".

The PivotDiagram shapes have the title bars (the ones holding Cat, Dog, etc. in the example above) offset slightly to up and to the left. Although I think this normally looks great, that offset causes the shapes to look wider to layout and therefore has the effect of making the diagram take up additional space. If you don't need the default look, you can change the offset get back that space. To do this, go to "PivotDiagram>Edit Data Graphic…" and click on "Edit Item…" for the field "=User.visDDTitle". Change the Horizontal and Vertical Offsets to None and optionally change the Border Type to None. You'll get the diagram below:

Removing Titles and Data Legends

The default title and data legend can also be turned off if you have labeled your diagram in another way or feel that they are taking up space. The easiest way to do this is to just delete them. If you want to add them back, you can go into the PivotDiagram options dialog and check the relevant options.

Working With Page Sizes

PivotDiagrams resize the page automatically to fit the diagram onto the drawing page. If you don't like this behavior and want to resize the page yourself, you can use "Shape>Configure Layout..." and uncheck "Enlarge page to fit drawing...". Once you have the page set up correctly, you can use "Print zoom" in the "File>Page Setup..." dialog to determine how much is printed on each paper page.

 

These should usually get you the space you need. There are a couple more advanced tricks that I can share if there is interest. Next time I'll cover a little more about how you can deeply customize the layout.

Previous PivotDiagram tip posts: