j4me / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

Labels and values in pie chart are hidden behind the pie chart segments #445

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Draw a pie chart with labels and text values

What is the expected output? What do you see instead?
Labels and values should always be in front of the pie chart itself, but 
sometimes they are hidden behind it. The reason for this is because all 
segments together with their values and labels are drawn in order one after 
another so the segments drawn later are drawn "in front" of the labels and 
values of segments drawn earlier.

Please provide a source code snippet that we can use to replicate the
issue.
I've attached an example screenshot showing the problem.

What version of the product binary library are you using?
I'm using achartengine source from SVN revision 569

Please provide any additional information below.
I've attached a patch with a fix for this issue. The fix basically delays 
drawing of all the text (labels and values) after all the pie segments are 
drawn.

Original issue reported on code.google.com by marcin.b...@gmail.com on 23 Oct 2014 at 8:52

Attachments: