Positioning label on CPTBarPlot (Core-Plot)
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 labelOffset for the bar plot. The default is +10 which puts the labels 10 pixels above the bars. This property is inherited from CPTPlot so it works for all plot types, although the