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

But I want to appear as follows:

Any idea? I tried to find answer on documentation, but I has been impossible.
Use a negative
labelOffsetfor the bar plot. The default is +10 which puts the labels 10 pixels above the bars. This property is inherited fromCPTPlotso it works for all plot types, although the default value and behavior varies somewhat.