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
Original issue reported on code.google.com by
maxdiver...@gmail.com
on 15 Mar 2011 at 1:17