I am trying to change the default position of labels in a chart using Core-Plot. I am using this method:
-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)idx;
And I come back:
return textLayer = [[CPTTextLayer alloc] initWithText:@"2222" style:textStyle];
I get this result:

But I want to look like this:

Any idea? I tried to find the answer to the documentation, but I was not possible.
source
share