how do you know "50" will reduce the size? Am I right to say it is a guess? And it could make the pie not have an appropriate size.
It was an example, not a guess; we didn't wish to suggest that you use those exact values. if you set width/height to 50/50 you are setting the Pie radius to 50 pixels (vertical) x 50 pixels (horizontal).
I'm getting frustrated here. This question is a week and a half old and I don't' feel like I am even getting close to the right answer. (I pay good money for my annual subscriptions and don't see a lot of features being developed so I anticipate good support, but maybe I am wrong to anticipate that).
I'm sorry that we haven't interpreted correctly what you require. In answer to your first question, between the suggestion to use Callout and alternatively CustomRadius we thought we'd offered two workable approaches. Of course we're happy to look at other options. I'm sorry that you feel we're not getting close or that there are deficiencies in the quality of our support.
Is there a way to increase the pie outside margin, i.e. reduce it by 20 pts, or set it to 90%?
The outside margin is controlled by these properties (I have added the default values):
Code: Select all
Chart1.MarginLeft := 3;
Chart1.MarginTop := 4;
Chart1.MarginRight := 3;
Chart1.MarginBottom := 4;
Those are, as default, percentage settings, but can be changed to pixel settings.
To change between percentage and pixels for the Margin settings use:
Code: Select all
Chart1.MarginUnits := muPercent; //(default)
Chart1.MarginUnits := muPixels;
As you can see, with default % in place, the margins are permitting 94% usage space horizontally and 92% usage space vertically. You could increase the margins to, (as an example only) 10, effectively reducing plottable area, to see whether the value gives you the reduced Pie size you require. Please note though, the CustomRadius value suggested by Pep gives more precise control.
Please note too, that the Callout value can be negative, bringing the Marks onto the Pie. If you are using the Chart Editor to set it use the Series Marks tab, not the Pie Format:Marks tab as the updown in the Series:Marks tab allows you to move the value to a negative. Mark Arrows also offer another variant to fine tune the relationship between overall Pie size and Mark distance. Changing Arrow size shortens the leg to the Mark whilst Callout shortens/lengthens the position of the Mark to the Pie .. the effect can be quite similar.
Code: Select all
Series1.Marks.ArrowLength := 3; //example value only
//the default value is 8 so this will have the effect of increasing Pie size towards the Mark.
There are several ways to change the Pie size using the properties described in this thread. Bear in mind that between Marks and Pie TeeChart automatically optimises (maximises) to fit within the plottable area .. that is, the area bounded inside the Margins. So changing any of the selection of properties re-moves the different elements to maintain that fit. That is not true of CustomRadius, that fixes the size according to the pixel value you set.
I hope that may be of help. If we have still missed the precise objective please let us know with a specific goal and we'll try and put a code sample together as an example.