TPieOtherSlice.Legend
TPieOtherSlice
property Legend: TChartLegend;
Unit
Series
Description
The Legend property controls a sub-legend filled with pie slices that belong to "Other" slice.
Example:
// add data to a Pie series
Series1.Clear;
Series1.Add(134, 'Google');
Series1.Add( 65, 'Yahoo');
Series1.Add( 23, 'AltaVista');
Series1.Add( 12, 'AllTheWeb');
Series1.Add( 9, 'Terra');
Series1.Add( 6, 'Lycos');
Series1.Add( 3, 'Ask Jeeves');
// prepare "Other" to group values below 10
Series1.OtherSlice.Style:=poBelowValue;
Series1.OtherSlice.Value:=10;
// Display "Other" legend:
with Series1.OtherSlice.Legend do
begin
Visible:=True;
Left:=340;
Top:=150;
end;