I have a pie series where the marks overlap the caption. Here is a sample:
I am not too sure how to fix it--but spent ~30 minutes in the IDE chart/pie series marks and only got more confused.
I can decrease the font size a bit, but how do I hide the background (via code please).
Can I decrease the pie size a little?
I would also like to hide the background to the marks, but cannot figure that out.
Any other suggestions would be appreciated.
Note that the IDE is pretty confusing--it looks like there are several places to configure marks (chart editor/series]/[pie series]Marks and chart editor/series]/Format/Marks--I don't know the difference).
Configuring marks (in a pie series)
Configuring marks (in a pie series)
Thanks,
Ed Dressel
Ed Dressel
Re: Configuring marks (in a pie series)
Hello,
Ie:
- The options in the ""Series/Format/Marks" tab are those related to the properties in TPieSeries.PieMarks. These properties are only present in the PieSeries.
You can call "Marks.Brush.Clear".
You can manually set a CustomXRadius. Since the Cirlced property is set to true by default, you don't need to set the CustomYRadius.
Ie:
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Chart1.Legend.Hide;
Chart1.Title.Text.Text:='This is a title with a big font';
Chart1.Title.Font.Size:=20;
with TPieSeries(Chart1.AddSeries(TPieSeries)) do
begin
AddPie(10, 'label 1');
AddPie(20, 'label 2');
AddPie(20, 'label 3');
AddPie(30, 'label 4');
Marks.Font.Size:=15;
Marks.Style:=smsLabelValue;
Marks.MultiLine:=True;
Marks.Brush.Clear;
CustomXRadius:=100;
end;
end;
You could also write your own algorithm to move the marks, you could use the DragMarks tool to let the user move the marks manually, or you could set them to be inside the pie setting PieMarks.InsideSlice to True.
- The options in the "Series/Marks" tab are those related to the properties in TChartSeries.Marks. These properties are shared with all the other series.
- The options in the ""Series/Format/Marks" tab are those related to the properties in TPieSeries.PieMarks. These properties are only present in the PieSeries.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |