I have a TPieSeries
which looks like this image when populated with data. Not very bright... Can I instruct the pie series to show the top N most significant records, and summarize the rest in another slice named "Others"? So far, the only thing I've come up with has been to set chart paging and order my data so that the top N records are shown on the first page. I'm using TeeChart Standard v2011.03.32815 VCL.
Asked
Active
Viewed 373 times
2

iMan Biglari
- 4,674
- 1
- 38
- 83
-
1I'm sorry for my offtopic comment, but... That chart looks like Sauron's eye – DiGi Oct 30 '12 at 12:35
1 Answers
3

Community
- 1
- 1

Narcís Calvet
- 7,304
- 5
- 27
- 47
-
Is there any special treatment for `OtherSlice` to work? For instance, should I set it at run time after the data is present in my data set? I ask this because setting the properties of it at design time has no effect on my chart – iMan Biglari Oct 30 '12 at 12:30
-
@iManBiglari this works fine for me here at design-time. You can try upgrading the TeeChart version shipped with XE2 with the free upgrade for XE2 update 4 at http://cc.embarcadero.com/item/28780. If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here at http://www.steema.net/upload/ – Narcís Calvet Oct 30 '12 at 12:51
-
My mistake. It works as described in by Yeray. Now, I have another question... Is it possible to instruct the series to show top N rows? For instance, if I don't know the nature of the data, I can't guess if 10 percent produces a better looking pie or 5 percent. – iMan Biglari Oct 30 '12 at 13:44
-
@iManBiglari I'm afraid not but you could implement that functionality pre-processing your data before populating the pie and then set OtherSlice accordingly. – Narcís Calvet Oct 30 '12 at 14:00
-