gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Align CPTextLayer with BarPlot #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have my BarChart working
2. When I use -(CPLayer *)dataLabelForPlot:(CPPlot *)plot 
recordIndex:(NSUInteger)index
3. and inside : CPTextLayer *label  = [[CPTextLayer alloc] 
initWithText:labelSlice]; //with labelSlice my label
label.bounds = CGRectMake(0, 0, 0,40);

What is the expected output? What do you see instead?
I would like to align my CPTextLayer where I want (in fact with the beginning 
of my BarPlot's border). What I see : my label is alginate with the middle of 
my barCharPlot. I would like to choose the position (at least with a left 
alignment but if i can do it using pixels would be perfect). So to sum up : how 
to choose where to put/align my CPTextLayer ? is it possible with the framework 
?

What version of the product are you using? On what operating system?
last ones

I tried with label.paddingLeft = -30; label.position = CGPointMake(0, 0); but 
nothing happens.

Thank you

Original issue reported on code.google.com by maxdiver...@gmail.com on 15 Mar 2011 at 1:17

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 16 Mar 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Moved to GitHub issue #12.

https://github.com/core-plot/core-plot/issues/12

Original comment by eskr...@mac.com on 29 Dec 2013 at 1:51