我已经使用本教程 http://www.raywenderlich.com/13271/how-to-draw-graphs-with-core-plot-part-2实现了图表
现在我想添加一个标题,它将是每个图表栏顶部每个图表栏的计算百分比,我正在尝试这样
int i =0;
for (CPTBarPlot *plot in plots) {
plot.dataSource = self;
plot.delegate = self;
plot.barWidth = CPTDecimalFromDouble(CPDBarWidth * 2);
plot.barOffset = CPTDecimalFromDouble(barX);
plot.lineStyle = barLineStyle;
NSString *plotname = [plottiltes objectAtIndex:i];
plot.title = plotname;
NSLog(@"%@",plotname);
i++;
[graph addPlot:plot toPlotSpace:graph.defaultPlotSpace];
barX += CPDBarWidth * 4;
}
但直到现在还没有成功,请。引导我。问候萨德