PieChart: how many items are shown in legend?
Posted: Tue Dec 20, 2005 10:28 am
Hello,
I'm using TeeChart Pro v7.02 with Delphi 6.
I have a PieSeries, with 100 datas. I show all these datas in the legend, but, obviously, not all datas fit in.
So, I want to group values below a certain %, in order to show less values in the legend (and in the pie, too).
I thought to loop in a way like this (pseudo-code):
PieSeries1.OtherSlice.Value := 0;
while (legend.values.count >= 10) do
begin
PieSeries1.OtherSlice.Value := PieSeries1.OtherSlice.Value + 1;
end;
in this way, I will get at most 10 items in legend, resulting more readable.
My questions:
- which PieSeries function or property gives me how many items are shown in legend?
- after set PieSeries1.OtherSlice.value, should I refresh something for changes to immediately take effect?
Thank you
I'm using TeeChart Pro v7.02 with Delphi 6.
I have a PieSeries, with 100 datas. I show all these datas in the legend, but, obviously, not all datas fit in.
So, I want to group values below a certain %, in order to show less values in the legend (and in the pie, too).
I thought to loop in a way like this (pseudo-code):
PieSeries1.OtherSlice.Value := 0;
while (legend.values.count >= 10) do
begin
PieSeries1.OtherSlice.Value := PieSeries1.OtherSlice.Value + 1;
end;
in this way, I will get at most 10 items in legend, resulting more readable.
My questions:
- which PieSeries function or property gives me how many items are shown in legend?
- after set PieSeries1.OtherSlice.value, should I refresh something for changes to immediately take effect?
Thank you