Nandulucky / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CPTLayer pixelAlign causes legend to move unexpectedly #541

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have created a graph with a pie chart and a legend right-center aligned. The 
data in the pie chart changes over time, so the legend changes its size as well.

Whenever the legen changes its size, it gets moved along the x axis causing it 
to get clipped/overlapping with other views.

I am using 1.2 but checked the current sources as well which have the same 
issue. The problem is in CPTLayer pixelAlign method where it calculates the 
newPosition. It unnecessarily adds the anchor within the round().

Original issue reported on code.google.com by tolnai.s...@googlemail.com on 17 May 2013 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 17 May 2013 at 10:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 840a32e9e376.

Original comment by eskr...@mac.com on 19 May 2013 at 11:42

GoogleCodeExporter commented 9 years ago
 Is it just me or this issue is still happening? 
 I have a pie graph with a top-left aligned legend and everytime I change the radial offset for a slice the legend always shifts to the left.
 For a legend with the scale != 1 and a currentPosition of (x=-0.5, y=252) the newPosition with the calculated into (x=-1.0, y=252) due to the subtraction of CGFloat(0.5).

Original comment by des...@gmail.com on 12 Jul 2013 at 3:50

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 14 Jul 2013 at 5:35

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b122f0f5715c.

Original comment by eskr...@mac.com on 20 Jul 2013 at 12:50