Page 1 of 1

Pie graph percent issues

Posted: Thu Mar 29, 2012 2:19 pm
by 7669317
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!

Re: Pie graph percent issues

Posted: Thu Mar 29, 2012 2:56 pm
by narcis
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.

Re: Pie graph percent issues

Posted: Thu Mar 29, 2012 5:52 pm
by 7669317
I use version v1 and my code is equal

Re: Pie graph percent issues

Posted: Thu Mar 29, 2012 7:10 pm
by 7669317
how to find the ticket TJ71016121 ??

Re: Pie graph percent issues

Posted: Fri Mar 30, 2012 7:56 am
by yeray
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

Re: Pie graph percent issues

Posted: Thu May 03, 2012 5:49 pm
by 7669317
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...

Re: Pie graph percent issues

Posted: Fri May 04, 2012 11:18 am
by yeray
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.