Pie graph percent issues

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Softwell
Newbie
Newbie
Posts: 24
Joined: Tue Sep 16, 2008 12:00 am

Pie graph percent issues

Post by Softwell » Thu Mar 29, 2012 2:19 pm

Total percent value is incorrect when individual values are not integer.

Assume I have the values [34, 38, 12], percents showed are [40%, 45%, 14%]. If I sum these percentages, total will be 99%.
How can I solve this issue to show 100%?

May I define for each piece, in Pie graph, decimal value?
If it is not possible, I would be glad, for example, if total could be 99.99%.

Thanks in advance!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Pie graph percent issues

Post by Narcís » Thu Mar 29, 2012 2:56 pm

Hi Lourival,

Is your problem in Marks text? Code snippet below works fine for me here using latest TeeChart for Java v3 release. However, adding: 40, 45, 14 doesn't plot correct marks. I added the issue (TJ71016121) to the defect list to be investigated. Is this the same problem at your end? Which TeeChart version are you using?

Code: Select all

        Pie pie1 = new Pie(tChart1.getChart());

        pie1.add(34);
        pie1.add(38);
        pie1.add(12);

        pie1.getMarks().setStyle(MarksStyle.PERCENT);
Also notice that you can customize marks text using MarkTextResolver as shown in this thread.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Softwell
Newbie
Newbie
Posts: 24
Joined: Tue Sep 16, 2008 12:00 am

Re: Pie graph percent issues

Post by Softwell » Thu Mar 29, 2012 5:52 pm

I use version v1 and my code is equal

Softwell
Newbie
Newbie
Posts: 24
Joined: Tue Sep 16, 2008 12:00 am

Re: Pie graph percent issues

Post by Softwell » Thu Mar 29, 2012 7:10 pm

how to find the ticket TJ71016121 ??

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Pie graph percent issues

Post by Yeray » Fri Mar 30, 2012 7:56 am

Hi Lourival,

I'm afraid the bug/request tickets can't be followed through the net, but they are remarked in the release notes when a new maintenance release is published
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Softwell
Newbie
Newbie
Posts: 24
Joined: Tue Sep 16, 2008 12:00 am

Re: Pie graph percent issues

Post by Softwell » Thu May 03, 2012 5:49 pm

Yeray wrote:Hi Lourival,

I'm afraid the bug/request tickets can't be followed through the net, but they are remarked in the release notes when a new maintenance release is published
Could this patch be applied to the v1 ? I can accept beta version...

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Pie graph percent issues

Post by Yeray » Fri May 04, 2012 11:18 am

Hi Lourival,

I'm afraid we don't have plans to publish any other v1. However, find free to modify the sources if you have them.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply