相关疑难解决方法(0)

在CPTBarPlot上定位标签(核心图)

我正在尝试使用Core-Plot更改条形图中标签的默认位置.我正在使用这种方法:

-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)idx;
Run Code Online (Sandbox Code Playgroud)

我回来了:

return textLayer = [[CPTTextLayer alloc] initWithText:@"2222" style:textStyle];
Run Code Online (Sandbox Code Playgroud)

我得到这个结果:

在此输入图像描述

但我想表现如下:

在此输入图像描述

任何的想法?我试图在文档上找到答案,但我一直不可能.

label position core-plot ios cptbarplot

4
推荐指数
1
解决办法
2886
查看次数

标签 统计

core-plot ×1

cptbarplot ×1

ios ×1

label ×1

position ×1